34 lines
806 B
JavaScript
34 lines
806 B
JavaScript
module.exports = {
|
|
env: {
|
|
browser: true,
|
|
es2021: true,
|
|
},
|
|
extends: [
|
|
"plugin:react/recommended",
|
|
"xo",
|
|
],
|
|
parser: "@typescript-eslint/parser",
|
|
parserOptions: {
|
|
ecmaFeatures: {
|
|
jsx: true,
|
|
},
|
|
ecmaVersion: 12,
|
|
sourceType: "module",
|
|
},
|
|
plugins: [
|
|
"react",
|
|
"@typescript-eslint",
|
|
],
|
|
ignorePatterns: ["dist"],
|
|
rules: {
|
|
"arrow-parens": ["error", "always"],
|
|
indent: ["error", 4],
|
|
"unused-vars": "off",
|
|
"@typescript-eslint/no-unused-vars": ["error", {argsIgnorePattern: "^_"}],
|
|
"no-redeclare": "off",
|
|
"@typescript-eslint/no-redeclare": ["error"],
|
|
quotes: ["error", "double"],
|
|
"no-warning-comments": "off",
|
|
},
|
|
};
|