airboardgame/.eslintrc.js
2021-04-14 22:20:53 +02:00

35 řádky
725 B
JavaScript

module.exports = {
env: {
browser: true,
es2021: true,
jest: true,
node: true,
},
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:prettier/recommended",
],
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: "module",
},
plugins: ["react", "react-hooks"],
rules: {
indent: ["error", 2, { SwitchCase: 1 }],
"linebreak-style": ["error", "unix"],
quotes: ["error", "double"],
semi: ["error", "always"],
"react/prop-types": "off",
"react-hooks/exhaustive-deps": [
"warn",
{
additionalHooks: "useRecoilCallback",
},
],
},
};