Skip to content

Commit

Permalink
Also update eslint-config-n custom rules
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ <[email protected]>
  • Loading branch information
skjnldsv committed Aug 9, 2022
1 parent 66b1d6b commit 1a5a313
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module.exports = {
}
}
},
plugins: ['vue', 'node', 'jsdoc'],
plugins: ['vue', 'n', 'jsdoc'],
rules: {
// space before function ()
'space-before-function-paren': ['error', {
Expand Down Expand Up @@ -68,8 +68,8 @@ module.exports = {
// suggest using const
'prefer-const': 'error',
// es6 import/export and require
'node/no-unpublished-require': ['off'],
'node/no-unsupported-features/es-syntax': ['off'],
'n/no-unpublished-require': ['off'],
'n/no-unsupported-features/es-syntax': ['off'],
// PascalCase components names for vuejs
// https://vuejs.org/v2/style-guide/#Single-file-component-filename-casing-strongly-recommended
'vue/component-name-in-template-casing': ['error', 'PascalCase'],
Expand All @@ -83,9 +83,7 @@ module.exports = {
// no ending html tag on a new line
'vue/html-closing-bracket-newline': ['error', { multiline: 'never' }],
// check vue files too
'node/no-missing-import': ['error', {
tryExtensions: ['.js', '.vue'],
}],
'n/no-missing-import': ['error', {}],
// code spacing with attributes
'vue/max-attributes-per-line': ['error', {
singleline: 3,
Expand All @@ -106,7 +104,7 @@ module.exports = {
'comma-dangle': ['warn', 'always-multiline'],
// Allow shallow import of @vue/test-utils and @testing-library/vue in order to be able to use it in
// the src folder
'node/no-unpublished-import': ['error', {
'n/no-unpublished-import': ['error', {
'allowModules': ['@vue/test-utils', '@testing-library/vue'],
}],
// require object literal shorthand syntax
Expand Down

0 comments on commit 1a5a313

Please sign in to comment.