-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
22b19d4
commit 175303f
Showing
21 changed files
with
1,930 additions
and
4,931 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
|
||
*/node_modules | ||
js/lib | ||
js/dist | ||
|
||
/node_modules | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
arrowParens: 'avoid' | ||
bracketSpacing: true | ||
jsxBracketSameLine: false | ||
semi: true | ||
singleQuote: true | ||
tabWidth: 2 | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
import { fixupConfigRules } from '@eslint/compat'; | ||
import globals from 'globals'; | ||
import babelParser from '@babel/eslint-parser'; | ||
import path from 'node:path'; | ||
import { fileURLToPath } from 'node:url'; | ||
import js from '@eslint/js'; | ||
import { FlatCompat } from '@eslint/eslintrc'; | ||
|
||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
const compat = new FlatCompat({ | ||
baseDirectory: __dirname, | ||
recommendedConfig: js.configs.recommended, | ||
allConfig: js.configs.all | ||
}); | ||
|
||
export default [{ | ||
ignores: ['lib', 'dist'], | ||
}, ...fixupConfigRules( | ||
compat.extends('eslint:recommended', 'plugin:import/errors', 'plugin:import/warnings'), | ||
), { | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.node, | ||
}, | ||
parser: babelParser, | ||
parserOptions: { | ||
requireConfigFile: false, | ||
}, | ||
ecmaVersion: 8, | ||
sourceType: 'module', | ||
}, | ||
|
||
settings: { | ||
react: { | ||
version: 'detect', | ||
}, | ||
}, | ||
|
||
rules: { | ||
'no-trailing-spaces': ['error'], | ||
'import/first': ['error'], | ||
'import/no-commonjs': ['error'], | ||
'import/namespace': ['warn'], | ||
'import/default': ['warn'], | ||
|
||
'import/order': ['error', { | ||
groups: [['internal', 'external', 'builtin'], ['index', 'sibling', 'parent']], | ||
'newlines-between': 'always', | ||
}], | ||
|
||
indent: ['error', 2, { | ||
MemberExpression: 1, | ||
SwitchCase: 1, | ||
}], | ||
|
||
'linebreak-style': ['error', 'unix'], | ||
'no-console': [0], | ||
|
||
quotes: ['error', 'single', { | ||
avoidEscape: true, | ||
allowTemplateLiterals: true, | ||
}], | ||
|
||
'require-await': ['error'], | ||
semi: ['error', 'always'], | ||
}, | ||
}]; |
Oops, something went wrong.