-
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
Showing
14 changed files
with
326 additions
and
228 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
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 @@ | ||
20.11.1 |
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,5 @@ | ||
import configJs from '@autotelic/eslint-config-js' | ||
|
||
export default [ | ||
configJs | ||
] |
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 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 |
---|---|---|
@@ -1,3 +1,74 @@ | ||
require('@rushstack/eslint-patch/modern-module-resolution') | ||
const standard = require('./standard') | ||
|
||
module.exports = require('./.eslintrc.json') | ||
module.exports = { | ||
...standard, | ||
settings: { | ||
node: { | ||
version: '^20.x' | ||
} | ||
}, | ||
rules: { | ||
...standard.rules, | ||
'array-bracket-newline': ['error', 'consistent'], | ||
'arrow-body-style': ['error', 'as-needed'], | ||
complexity: ['error', { | ||
max: 15 | ||
}], | ||
'default-param-last': ['error'], | ||
'func-names': ['error', 'as-needed'], | ||
'func-style': ['error', 'declaration', { | ||
allowArrowFunctions: true | ||
}], | ||
'function-call-argument-newline': ['error', 'consistent'], | ||
'implicit-arrow-linebreak': ['error', 'beside'], | ||
'max-len': ['error', { | ||
code: 110, | ||
tabWidth: 2, | ||
ignoreComments: true, | ||
ignoreTrailingComments: false, | ||
ignoreStrings: true, | ||
ignoreTemplateLiterals: true, | ||
ignoreUrls: true, | ||
ignoreRegExpLiterals: true | ||
}], | ||
'newline-per-chained-call': ['error', { ignoreChainWithDepth: 3 }], | ||
'no-bitwise': 'error', | ||
'no-confusing-arrow': 'error', | ||
'no-else-return': 'error', | ||
'no-multi-assign': 'error', | ||
'no-nested-ternary': 'error', | ||
'no-return-await': 'error', | ||
'object-shorthand': ['error', 'always'], | ||
'require-atomic-updates': ['error', { | ||
allowProperties: true | ||
}], | ||
'import/default': 'error', | ||
'import/named': 'error', | ||
'import/no-cycle': ['error', { | ||
ignoreExternal: true | ||
}], | ||
'import/no-self-import': 'error', | ||
'import/order': ['error', { | ||
alphabetize: { | ||
order: 'asc', | ||
caseInsensitive: true | ||
}, | ||
'newlines-between': 'always' | ||
}], | ||
'import/no-unresolved': ['error', { | ||
commonjs: true | ||
}], | ||
'n/no-unsupported-features/es-builtins': 'error', | ||
'n/no-unsupported-features/es-syntax': 'error', | ||
'n/no-unsupported-features/node-builtins': 'error', | ||
'n/prefer-global/buffer': ['error', 'always'], | ||
'n/prefer-global/console': ['error', 'always'], | ||
'n/prefer-global/process': ['error', 'always'], | ||
'n/prefer-global/text-decoder': ['error', 'always'], | ||
'n/prefer-global/text-encoder': ['error', 'always'], | ||
'n/prefer-global/url': ['error', 'always'], | ||
'n/prefer-global/url-search-params': ['error', 'always'], | ||
'n/prefer-promises/dns': 'error', | ||
'n/prefer-promises/fs': 'error' | ||
} | ||
} |
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,31 @@ | ||
const standard = require('eslint-config-standard') | ||
const pluginImport = require('eslint-plugin-import') | ||
const pluginN = require('eslint-plugin-n') | ||
const pluginPromise = require('eslint-plugin-promise') | ||
const globals = require('globals') | ||
|
||
// TODO(HW13): Get `languageOptions` and `plugins` directly from eslint-config-standard | ||
// as soon as they publish their flat config | ||
// -> https://github.com/standard/eslint-config-standard/issues/351 | ||
module.exports = { | ||
languageOptions: { | ||
ecmaVersion: 2022, | ||
sourceType: 'module', | ||
parserOptions: { | ||
ecmaFeatures: { jsx: true } | ||
}, | ||
globals: { | ||
...globals.es2021, | ||
...globals.node, | ||
document: 'readonly', | ||
navigator: 'readonly', | ||
window: 'readonly' | ||
} | ||
}, | ||
plugins: { | ||
n: pluginN, | ||
promise: pluginPromise, | ||
import: pluginImport | ||
}, | ||
rules: standard.rules | ||
} |
Oops, something went wrong.