airboardgame/.eslintrc.js
Jeremie Pardou-Piquemal 1a953e4183 Use vitejs for bundling
2021-03-19 10:03:45 +01:00

35 lines
706 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],
"linebreak-style": ["error", "unix"],
quotes: ["error", "double"],
semi: ["error", "always"],
"react/prop-types": "off",
"react-hooks/exhaustive-deps": [
"warn",
{
additionalHooks: "useRecoilCallback",
},
],
},
};