Skip to content

Commit f965724

Browse files
derick-montaguerfrandse
authored andcommitted
Update linting packages to use latest
- 99% of changes were small syntax changes that were changed by the lint command. There were a couple of small manual changes to meet the property order patterns established as part of the vue:recommended guidelines. There are rules that were set from errors to warnings and new stories are being opened to address those issues. Testing: - Successfully ran npm run serve - Successfully ran npm run lint - Verified functionality works as expected, e.g. success and failure use cases - Resolved any JavaScript errors thrown to the console Signed-off-by: Derick Montague <[email protected]> Change-Id: Ie082f31c73ccbe8a60afa8f88a9ef6dbf33d9fd2
1 parent bfec0ec commit f965724

File tree

121 files changed

+2531
-2330
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+2531
-2330
lines changed

.eslintrc.js

+15-12
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,39 @@
11
module.exports = {
22
root: true,
33
env: {
4-
node: true
4+
node: true,
55
},
6-
extends: ['plugin:vue/recommended', '@vue/prettier'],
6+
extends: ['plugin:vue/recommended', 'eslint:recommended', '@vue/prettier'],
77
rules: {
8+
'no-prototype-builtins': 'warn',
89
'no-console': 'off',
910
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
1011
'prettier/prettier': [
1112
'error',
1213
{
13-
singleQuote: true
14-
}
14+
singleQuote: true,
15+
},
1516
],
16-
'vue/component-name-in-template-casing': ['error', 'kebab-case']
17+
'vue/component-name-in-template-casing': ['error', 'kebab-case'],
18+
'vue/custom-event-name-casing': ['warn'],
19+
'vue/no-unused-vars': ['warn'],
1720
},
1821
parserOptions: {
19-
parser: 'babel-eslint'
22+
parser: 'babel-eslint',
2023
},
2124
globals: {
2225
expect: true,
23-
sinon: true
26+
sinon: true,
2427
},
2528
overrides: [
2629
{
2730
files: [
2831
'**/__tests__/*.{j,t}s?(x)',
29-
'**/tests/unit/**/*.spec.{j,t}s?(x)'
32+
'**/tests/unit/**/*.spec.{j,t}s?(x)',
3033
],
3134
env: {
32-
jest: true
33-
}
34-
}
35-
]
35+
jest: true,
36+
},
37+
},
38+
],
3639
};

babel.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
presets: [['@vue/cli-plugin-babel/preset', { useBuiltIns: 'entry' }]]
2+
presets: [['@vue/cli-plugin-babel/preset', { useBuiltIns: 'entry' }]],
33
};

jest.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
22
preset: '@vue/cli-plugin-unit-jest',
3-
transformIgnorePatterns: ['/node_modules/(?!@carbon)']
3+
transformIgnorePatterns: ['/node_modules/(?!@carbon)'],
44
};

0 commit comments

Comments
 (0)