Update .eslintrc.js

extra tabs and spaces has been removed
pull/4127/head
Anthony 6 years ago committed by GitHub
parent a9065d4120
commit 119e730bd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,58 +1,58 @@
module.exports = { module.exports = {
root: true, root: true,
rules: { rules: {
indent: [2, 'tab', { SwitchCase: 1 }], indent: [2, 'tab', { SwitchCase: 1 }],
semi: [2, 'always'], semi: [2, 'always'],
'keyword-spacing': [2, { before: true, after: true }], 'keyword-spacing': [2, { before: true, after: true }],
'space-before-blocks': [2, 'always'], 'space-before-blocks': [2, 'always'],
'no-mixed-spaces-and-tabs': [2, 'smart-tabs'], 'no-mixed-spaces-and-tabs': [2, 'smart-tabs'],
'no-cond-assign': 0, 'no-cond-assign': 0,
'no-unused-vars': 2, 'no-unused-vars': 2,
'object-shorthand': [2, 'always'], 'object-shorthand': [2, 'always'],
'no-const-assign': 2, 'no-const-assign': 2,
'no-class-assign': 2, 'no-class-assign': 2,
'no-this-before-super': 2, 'no-this-before-super': 2,
'no-var': 2, 'no-var': 2,
'no-unreachable': 2, 'no-unreachable': 2,
'valid-typeof': 2, 'valid-typeof': 2,
'quote-props': [2, 'as-needed'], 'quote-props': [2, 'as-needed'],
'one-var': [2, 'never'], 'one-var': [2, 'never'],
'prefer-arrow-callback': 2, 'prefer-arrow-callback': 2,
'prefer-const': [2, { destructuring: 'all' }], 'prefer-const': [2, { destructuring: 'all' }],
'arrow-spacing': 2, 'arrow-spacing': 2,
'no-inner-declarations': 0, 'no-inner-declarations': 0,
'require-atomic-updates': 0 'require-atomic-updates': 0
}, },
env: { env: {
es6: true, es6: true,
browser: true, browser: true,
node: true, node: true,
mocha: true mocha: true
}, },
extends: [ extends: [
'eslint:recommended', 'eslint:recommended',
'plugin:import/errors', 'plugin:import/errors',
'plugin:import/warnings' 'plugin:import/warnings'
], ],
plugins: ['svelte3'], plugins: ['svelte3'],
overrides: [ overrides: [
{ {
files: ['*.svelte'], files: ['*.svelte'],
processor: 'svelte3/svelte3' processor: 'svelte3/svelte3'
} }
], ],
parserOptions: { parserOptions: {
ecmaVersion: 9, ecmaVersion: 9,
sourceType: 'module' sourceType: 'module'
}, },
settings: { settings: {
'import/core-modules': ['svelte'], 'import/core-modules': ['svelte'],
'svelte3/compiler': (() => { 'svelte3/compiler': (() => {
try { try {
return require('svelte/compiler'); return require('svelte/compiler');
} catch (e) { } catch (e) {
return null; return null;
} }
})() })()
} }
}; };

Loading…
Cancel
Save