Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Also update eslint-config-n custom rules #381

Merged
merged 1 commit into from Aug 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 5 additions & 7 deletions index.js
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