36 lines
1.3 KiB
JavaScript
36 lines
1.3 KiB
JavaScript
module.exports = {
|
|
parser: "@typescript-eslint/parser",
|
|
parserOptions: {
|
|
sourceType: "module",
|
|
project: "./tsconfig.json"
|
|
},
|
|
plugins: ["@typescript-eslint/eslint-plugin"],
|
|
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"
|
|
}
|
|
}]
|
|
}
|
|
}; |