Skip to content

Instantly share code, notes, and snippets.

@wonderbeyond
Created May 26, 2023 07:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wonderbeyond/a61121c15c31d8635d1002e99a0dc3b8 to your computer and use it in GitHub Desktop.
Save wonderbeyond/a61121c15c31d8635d1002e99a0dc3b8 to your computer and use it in GitHub Desktop.
eslintrc in practice
{
"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