2020-04-10 04:40:22 +02:00
|
|
|
{
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"es6": true
|
|
|
|
},
|
|
|
|
"globals": {
|
|
|
|
"Atomics": "readonly",
|
|
|
|
"SharedArrayBuffer": "readonly"
|
|
|
|
},
|
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"parserOptions": {
|
|
|
|
"ecmaFeatures": {
|
|
|
|
"jsx": true
|
|
|
|
},
|
|
|
|
"ecmaVersion": 2018,
|
|
|
|
"sourceType": "module"
|
|
|
|
},
|
|
|
|
"plugins": ["react", "@typescript-eslint", "prettier"],
|
|
|
|
"extends": [
|
|
|
|
"plugin:react/recommended",
|
|
|
|
"airbnb",
|
|
|
|
"plugin:prettier/recommended",
|
|
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
2022-05-06 23:41:52 +02:00
|
|
|
"plugin:@typescript-eslint/recommended",
|
|
|
|
"plugin:storybook/recommended"
|
2020-04-10 04:40:22 +02:00
|
|
|
],
|
|
|
|
"rules": {
|
2021-05-03 00:31:24 +02:00
|
|
|
"prettier/prettier": "warn",
|
2021-09-04 21:07:54 +02:00
|
|
|
"no-shadow": "off",
|
2020-07-12 09:06:11 +02:00
|
|
|
"no-restricted-syntax": ["error", "LabeledStatement", "WithStatement"],
|
2020-04-10 04:40:22 +02:00
|
|
|
"@typescript-eslint/explicit-function-return-type": "off",
|
|
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
|
|
"@typescript-eslint/no-unused-vars": "off",
|
2022-05-06 23:41:52 +02:00
|
|
|
"react/jsx-filename-extension": [
|
|
|
|
2,
|
|
|
|
{
|
|
|
|
"extensions": [".js", ".jsx", ".ts", ".tsx"]
|
|
|
|
}
|
|
|
|
],
|
2021-05-01 05:55:37 +02:00
|
|
|
"react/require-default-props": "off",
|
2020-08-28 01:57:23 +02:00
|
|
|
"no-case-declarations": "off",
|
2020-10-21 01:52:09 +02:00
|
|
|
"no-plusplus": "off",
|
2020-04-10 04:40:22 +02:00
|
|
|
"react/prop-types": 0,
|
2021-09-13 19:43:39 +02:00
|
|
|
"react/no-unused-prop-types": "off",
|
2020-10-21 01:52:09 +02:00
|
|
|
"no-continue": "off",
|
2020-04-10 04:40:22 +02:00
|
|
|
"react/jsx-props-no-spreading": "off",
|
2020-04-11 21:24:45 +02:00
|
|
|
"no-param-reassign": "off",
|
2020-04-10 04:40:22 +02:00
|
|
|
"import/extensions": [
|
|
|
|
"error",
|
|
|
|
"ignorePackages",
|
|
|
|
{
|
|
|
|
"js": "never",
|
|
|
|
"mjs": "never",
|
|
|
|
"jsx": "never",
|
|
|
|
"ts": "never",
|
|
|
|
"tsx": "never"
|
|
|
|
}
|
|
|
|
],
|
2022-05-06 23:41:52 +02:00
|
|
|
"import/prefer-default-export": "off",
|
2021-05-03 00:31:24 +02:00
|
|
|
"no-use-before-define": "off",
|
2022-05-06 23:41:52 +02:00
|
|
|
"react/no-unescaped-entities": "off",
|
|
|
|
"import/no-unresolved": "off",
|
2021-05-03 00:31:24 +02:00
|
|
|
"@typescript-eslint/no-use-before-define": ["error"],
|
2020-04-10 04:40:22 +02:00
|
|
|
"import/no-extraneous-dependencies": [
|
|
|
|
"error",
|
|
|
|
{
|
2022-05-06 23:41:52 +02:00
|
|
|
"devDependencies": ["src/stories/**", "src/shared/components/**/*.stories.tsx", "**/*.stories.tsx"]
|
2020-04-10 04:40:22 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"settings": {
|
|
|
|
"import/resolver": {
|
|
|
|
"node": {
|
|
|
|
"paths": ["src"],
|
|
|
|
"extensions": [".js", ".jsx", ".ts", ".tsx"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|