Skip to content

Instantly share code, notes, and snippets.

@yangfch3
Last active July 23, 2020 07:59
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 yangfch3/4f2a2aa87abee41c1eb2fc093a1984a3 to your computer and use it in GitHub Desktop.
Save yangfch3/4f2a2aa87abee41c1eb2fc093a1984a3 to your computer and use it in GitHub Desktop.
[eslint vscode 插件全局配置] #eslint #vscode
module.exports = {
env: {
browser: true,
commonjs: true,
es6: true,
node: true,
},
extends: ['eslint:recommended'],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
rules: {
"indent": ["error", 4],
"semi": ["error", "never"],
"eol-last": ["error", "always"],
"linebreak-style": ["error", "unix"]
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment