-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
34 lines (34 loc) · 880 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
module.exports = {
parser: "babel-eslint",
extends: [
"standard",
"standard-jsx",
"standard-react", // or whatever you chose as your base config
"plugin:prettier/recommended", // this will stop Prettier and ESLint from fighting over fixes
"prettier",
],
env: {
browser: true,
},
plugins: ["prettier"],
ignorePatterns: ["node_modules", ".next", ".now"],
rules: {
// make Prettier return errors
"prettier/prettier": [
"error",
{
// Optional Prettier config changes
useTabs: false,
tabWidth: 2,
printWidth: 80,
singleQuote: false,
trailingComma: "none",
bracketSameLine: false,
semi: false,
},
],
"react/react-in-jsx-scope": "off",
"react/jsx-filename-extension": [1, { extensions: [".js", ".jsx"] }],
"react/prop-types": "off",
},
};