Created
December 4, 2020 15:24
-
-
Save brunoparga/b6bb38b81b46a1c9b3d6122bd1eb9f63 to your computer and use it in GitHub Desktop.
Config file that displays issue EvgenyOrekhov/eslint-config-hardcore#50
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
module.exports = { | |
env: { | |
browser: true, | |
es6: true, | |
'jest/globals': true | |
}, | |
extends: [ | |
'eslint:recommended', | |
'hardcore', | |
'plugin:jest/recommended', | |
'plugin:jest/style', | |
'plugin:@typescript-eslint/recommended', | |
'plugin:react/recommended', | |
], | |
globals: { | |
Atomics: 'readonly', | |
SharedArrayBuffer: 'readonly', | |
}, | |
overrides: [ | |
{ | |
"files": ["*.js"], | |
"extends": ["hardcore/ts-for-js"], | |
"parserOptions": { "project": "./tsconfig.json" } | |
}, | |
{ | |
"files": ["*.js"], | |
"rules": { | |
"import/no-unused-modules": [ | |
"error", | |
{ | |
"src": ["**/*.js"], | |
"missingExports": false, | |
"unusedExports": true | |
} | |
] | |
} | |
}, | |
{ | |
"files": ["*.jsx"], | |
"rules": { | |
"import/no-unused-modules": [ | |
"error", | |
{ | |
"src": ["**/*.jsx"], | |
"missingExports": false, | |
"unusedExports": true | |
} | |
] | |
} | |
}, | |
{ | |
"files": ["*.ts"], | |
"rules": { | |
"import/no-unused-modules": [ | |
"error", | |
{ | |
"src": ["**/*.ts"], | |
"missingExports": false, | |
"unusedExports": true | |
} | |
] | |
} | |
}, | |
{ | |
"files": ["*.tsx"], | |
"rules": { | |
"import/no-unused-modules": [ | |
"error", | |
{ | |
"src": ["**/*.tsx"], | |
"missingExports": false, | |
"unusedExports": true | |
} | |
] | |
} | |
}, | |
], | |
parser: '@typescript-eslint/parser', | |
parserOptions: { | |
ecmaFeatures: { | |
jsx: true, | |
}, | |
ecmaVersion: 2018, | |
sourceType: 'module', | |
}, | |
plugins: [ | |
'inclusive-language', | |
'jest', | |
'woke', | |
'react', | |
'@typescript-eslint', | |
], | |
rules: { | |
'inclusive-language/use-inclusive-words': 'error', | |
'import/extensions': 'off', | |
'import/no-unresolved': 'off', | |
'import/prefer-default-export': 'off', | |
'no-use-before-define': 'off', | |
'react/jsx-filename-extension': [1, { extensions: ['.jsx', '.tsx'] }], | |
'react/prop-types': 'off', | |
'woke/all': 'error' | |
}, | |
settings: { | |
react: { | |
version: "detect" | |
} | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment