airboardgame/.eslintrc.js

36 lines
725 B
JavaScript
Raw Normal View History

2021-03-09 21:44:09 +01:00
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: {
2021-04-14 21:29:39 +02:00
indent: ["error", 2, { SwitchCase: 1 }],
2021-03-09 21:44:09 +01:00
"linebreak-style": ["error", "unix"],
quotes: ["error", "double"],
semi: ["error", "always"],
"react/prop-types": "off",
"react-hooks/exhaustive-deps": [
"warn",
{
additionalHooks: "useRecoilCallback",
},
],
},
};