Created
May 26, 2023 07:23
-
-
Save wonderbeyond/a61121c15c31d8635d1002e99a0dc3b8 to your computer and use it in GitHub Desktop.
eslintrc in practice
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"env": { | |
"browser": true, | |
"es2021": true, | |
"commonjs": true, | |
"jest/globals": true | |
}, | |
"plugins": ["jest"], | |
"extends": "eslint:recommended", | |
"overrides": [ | |
], | |
"parserOptions": { | |
"ecmaVersion": "latest", | |
"sourceType": "module" | |
}, | |
"ignorePatterns": [ | |
"node_modules/", | |
"dist/", | |
"coverage/", | |
"raw-tmpl/index.js" | |
], | |
"rules": { | |
"indent": [ | |
"error", | |
2 | |
], | |
"linebreak-style": [ | |
"error", | |
"unix" | |
], | |
"quotes": [ | |
"error", | |
"single" | |
], | |
"semi": [ | |
"error", | |
"always" | |
], | |
"no-unused-vars": [ | |
"error", | |
{ | |
"argsIgnorePattern": "^_" | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment