-
Notifications
You must be signed in to change notification settings - Fork 93
/
Copy path.eslintrc.js
38 lines (32 loc) · 1018 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
const esLintConfig = require('kolibri-format/.eslintrc');
const nuxtDocsRules = {
// Vuetify's helper attributes use hyphens and they would
// not be recognized if auto-formatted to camel case
'vue/attribute-hyphenation': 0,
// This rule conflicts with Nuxt page naming
'vue/no-reserved-component-names': 0,
// This rule conflicts with Nuxt page naming
'kolibri/vue-filename-and-component-name-match': 0,
// max-len rules are unhelpful for documentation
'max-len': 0,
'vue/max-len': 0,
};
esLintConfig.overrides.push({
files: ['docs/**/*.vue'],
rules: nuxtDocsRules,
});
// Allow nuxt resources to be found
esLintConfig.settings['import/resolver'].nuxt = {
extensions: ['.js', '.vue'],
nuxtSrcDir: 'docs',
};
// Remove linting errors for the globals defined in the jest-puppeteer package and testUtils
esLintConfig.globals = {
...esLintConfig.globals,
page: true,
browser: true,
context: true,
puppeteerConfig: true,
jestPuppeteer: true,
};
module.exports = esLintConfig;