ginb
Version:
Write & Share all in GitHub
44 lines (43 loc) • 852 B
JavaScript
module.exports = {
env: {
node: true,
commonjs: true,
browser: true,
es6: true,
},
extends: ["eslint:recommended", "next", "prettier"],
overrides: [
{
env: {
node: true,
},
files: [".eslintrc.{js,cjs}"],
parserOptions: {
sourceType: "script",
},
},
],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["react"],
rules: {
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"react/display-name": "off",
indent: ["warn", 2],
"linebreak-style": ["warn", "unix"],
quotes: ["warn", "double"],
semi: ["warn", "always"],
"max-len": [
"warn",
{
code: 100,
ignoreTrailingComments: true,
ignoreStrings: true,
ignoreComments: true,
},
],
},
};