forked from import-js/eslint-plugin-import
-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
363 changed files
with
13,818 additions
and
9,505 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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
root = true | ||
root=true | ||
|
||
[*] | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset=utf-8 | ||
trim_trailing_whitespace=true | ||
insert_final_newline=true | ||
indent_style=space | ||
indent_size=2 | ||
end_of_line=lf |
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,68 @@ | ||
module.exports = { | ||
root: true, | ||
plugins: ['eslint-plugin', 'import-x'], | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:eslint-plugin/recommended', | ||
'plugin:import-x/recommended', | ||
'plugin:prettier/recommended', | ||
], | ||
env: { | ||
node: true, | ||
es6: true, | ||
es2017: true, | ||
}, | ||
parserOptions: { | ||
sourceType: 'module', | ||
ecmaVersion: 2020, | ||
}, | ||
rules: { | ||
'@typescript-eslint/no-var-requires': 'off', | ||
|
||
'eslint-plugin/consistent-output': ['error', 'always'], | ||
'eslint-plugin/meta-property-ordering': 'error', | ||
'eslint-plugin/no-deprecated-context-methods': 'error', | ||
'eslint-plugin/no-deprecated-report-api': 'off', | ||
'eslint-plugin/prefer-replace-text': 'error', | ||
'eslint-plugin/report-message-format': 'error', | ||
'eslint-plugin/require-meta-docs-description': [ | ||
'error', | ||
{ pattern: '^(Enforce|Ensure|Prefer|Forbid).+\\.$' }, | ||
], | ||
'eslint-plugin/require-meta-schema': 'error', | ||
'eslint-plugin/require-meta-type': 'error', | ||
|
||
// dog fooding | ||
'import-x/no-extraneous-dependencies': [ | ||
'error', | ||
{ | ||
devDependencies: ['test/**'], | ||
optionalDependencies: false, | ||
peerDependencies: true, | ||
bundledDependencies: false, | ||
}, | ||
], | ||
'import-x/unambiguous': 'off', | ||
}, | ||
|
||
settings: { | ||
'import-x/resolver': { | ||
node: { | ||
paths: ['src'], | ||
}, | ||
}, | ||
}, | ||
|
||
overrides: [ | ||
{ | ||
files: 'test/**', | ||
env: { | ||
jest: true, | ||
}, | ||
rules: { | ||
'import-x/default': 0, | ||
}, | ||
}, | ||
], | ||
} |
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,14 @@ | ||
import baseConfig from '@1stg/prettier-config' | ||
|
||
export default { | ||
...baseConfig, | ||
overrides: [ | ||
...baseConfig.overrides, | ||
{ | ||
files: ['**/*.js'], | ||
options: { | ||
parser: 'babel-flow', | ||
}, | ||
}, | ||
], | ||
} |
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.