62 lines
1.5 KiB
JavaScript
62 lines
1.5 KiB
JavaScript
module.exports = {
|
|
parser: "@typescript-eslint/parser",
|
|
parserOptions: {
|
|
sourceType: "module",
|
|
},
|
|
plugins: ["@typescript-eslint/eslint-plugin", "testing-library", "jest"],
|
|
overrides: [
|
|
{
|
|
files: ["**/?(*.)+(spec|test).[jt]s?(x)"],
|
|
extends: ["plugin:testing-library/react"],
|
|
},
|
|
],
|
|
extends: [
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:react/recommended",
|
|
"plugin:import/recommended",
|
|
"plugin:import/typescript",
|
|
"plugin:prettier/recommended",
|
|
"plugin:storybook/recommended",
|
|
],
|
|
root: true,
|
|
env: {
|
|
node: true,
|
|
jest: true,
|
|
},
|
|
rules: {
|
|
"prettier/prettier": [
|
|
"error",
|
|
{
|
|
singleQuote: false,
|
|
},
|
|
],
|
|
"@typescript-eslint/explicit-function-return-type": "off",
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
"@typescript-eslint/quotes": [2, "double", "avoid-escape"],
|
|
"no-unused-vars": "off",
|
|
"@typescript-eslint/no-unused-vars": [
|
|
"error",
|
|
{
|
|
argsIgnorePattern: "^_",
|
|
destructuredArrayIgnorePattern: "^_",
|
|
},
|
|
],
|
|
quotes: [2, "double", "avoid-escape"],
|
|
semi: ["error", "always"],
|
|
"eol-last": ["error", "always"],
|
|
"react/react-in-jsx-scope": "off",
|
|
"import/no-unresolved": "off",
|
|
"import/order": [
|
|
"error",
|
|
{
|
|
"newlines-between": "always",
|
|
alphabetize: {
|
|
order: "asc",
|
|
},
|
|
},
|
|
],
|
|
},
|
|
};
|