-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Sync provider list - Update dependencies - Update eslint config - Add node 22 to ci test
- Loading branch information
Showing
10 changed files
with
301 additions
and
139 deletions.
There are no files selected for viewing
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
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,129 @@ | ||
// eslint.config.js | ||
|
||
import eslintjs from '@eslint/js' | ||
import globals from 'globals' | ||
|
||
export default [ | ||
eslintjs.configs.recommended, | ||
{ | ||
languageOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
globals: { | ||
...globals.node, | ||
...globals.browser, | ||
...globals.jest, | ||
Intl: 'readonly', | ||
}, | ||
}, | ||
ignores: [ | ||
'node_modules', | ||
'storage', | ||
'*.cjs', | ||
], | ||
rules: { | ||
'arrow-spacing': ['error', { 'before': true, 'after': true }], | ||
'block-spacing': ['error', 'always'], | ||
'brace-style': ['error', '1tbs', { 'allowSingleLine': true }], | ||
'camelcase': ['error', { | ||
'allow': ['^UNSAFE_'], | ||
'properties': 'never', | ||
'ignoreGlobals': true, | ||
}], | ||
'comma-dangle': ['error', { | ||
'arrays': 'always-multiline', | ||
'objects': 'always-multiline', | ||
'imports': 'never', | ||
'exports': 'never', | ||
'functions': 'never', | ||
}], | ||
'comma-spacing': ['error', { 'before': false, 'after': true }], | ||
'eol-last': 'error', | ||
'eqeqeq': ['error', 'always', { 'null': 'ignore' }], | ||
'func-call-spacing': ['error', 'never'], | ||
'indent': [ | ||
'error', | ||
2, | ||
{ | ||
'MemberExpression': 1, | ||
'FunctionDeclaration': { | ||
'body': 1, | ||
'parameters': 2, | ||
}, | ||
'SwitchCase': 1, | ||
'ignoredNodes': ['TemplateLiteral > *'], | ||
}, | ||
], | ||
'key-spacing': ['error', { 'beforeColon': false, 'afterColon': true }], | ||
'keyword-spacing': ['error', { 'before': true, 'after': true }], | ||
'lines-between-class-members': ['error', 'always', { 'exceptAfterSingleLine': true }], | ||
'max-len': [ | ||
'error', | ||
{ | ||
'code': 120, | ||
'ignoreTrailingComments': true, | ||
'ignoreComments': true, | ||
'ignoreUrls': true, | ||
}, | ||
], | ||
'max-lines': [ | ||
'error', | ||
{ | ||
'max': 500, | ||
'skipBlankLines': true, | ||
'skipComments': false, | ||
}, | ||
], | ||
'max-lines-per-function': [ | ||
'error', | ||
{ | ||
'max': 200, | ||
'skipBlankLines': true, | ||
}, | ||
], | ||
'max-params': ['error', 3], | ||
'no-array-constructor': 'error', | ||
'no-mixed-spaces-and-tabs': 'error', | ||
'no-multi-spaces': 'error', | ||
'no-multi-str': 'error', | ||
'no-multiple-empty-lines': [ | ||
'error', | ||
{ | ||
'max': 1, | ||
'maxEOF': 0, | ||
}, | ||
], | ||
'no-restricted-syntax': [ | ||
'error', | ||
'WithStatement', | ||
'BinaryExpression[operator=\'in\']', | ||
], | ||
'no-trailing-spaces': 'error', | ||
'no-use-before-define': [ | ||
'error', | ||
{ | ||
'functions': true, | ||
'classes': true, | ||
'variables': false, | ||
}, | ||
], | ||
'no-var': 'warn', | ||
'object-curly-spacing': ['error', 'always'], | ||
'padded-blocks': [ | ||
'error', | ||
{ | ||
'blocks': 'never', | ||
'switches': 'never', | ||
'classes': 'never', | ||
}, | ||
], | ||
'quotes': ['error', 'single'], | ||
'space-before-blocks': ['error', 'always'], | ||
'space-before-function-paren': ['error', 'always'], | ||
'space-infix-ops': 'error', | ||
'space-unary-ops': ['error', { 'words': true, 'nonwords': false }], | ||
'space-in-parens': ['error', 'never'], | ||
'semi': ['error', 'never'], | ||
}, | ||
}, | ||
] |
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 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 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
Oops, something went wrong.