Last active
July 23, 2020 07:59
-
-
Save yangfch3/4f2a2aa87abee41c1eb2fc093a1984a3 to your computer and use it in GitHub Desktop.
[eslint vscode 插件全局配置] #eslint #vscode
This file contains 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
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