freeCodeCamp/.eslintrc.json

75 lines
1.6 KiB
JSON
Raw Normal View History

{
"env": {
"es6": true,
"browser": true,
"mocha": true,
"node": true,
"jest": true
2019-02-18 22:43:11 +00:00
},
"parser": "babel-eslint",
"root": true,
"extends": [
"./.eslintrc-base.json",
"plugin:import/typescript",
"plugin:jsx-a11y/recommended",
"prettier"
],
"plugins": [
"react",
"import",
"prefer-object-spread",
"react-hooks",
"jsx-a11y",
"jest-dom",
"testing-library"
],
"globals": {
"Promise": true,
"window": true,
"$": true,
"ga": true,
"jQuery": true,
"router": true
},
"settings": {
"react": {
"version": "16.4.2",
"import/ignore": ["\\.json$"],
"import/extensions": [".js", ".jsx", ".tsx"]
},
"import/ignore": ["node_modules"]
},
"overrides": [
{
"files": ["**/*.ts?(x)"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": [
"./client/tsconfig.json",
"./tools/challenge-helper-scripts/tsconfig.json",
"./tools/ui-components/tsconfig.json"
]
},
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"plugins": ["@typescript-eslint"]
},
{
"files": [
"./tools/ui-components/**/*.test.[jt]s?(x)",
"./client/**/*.test.[jt]s?(x)"
],
"extends": ["plugin:testing-library/react", "plugin:jest-dom/recommended"]
},
{
"files": ["cypress/**/*.js"],
"globals": {
"cy": true,
"Cypress": true
}
}
]
}