Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[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