forked from learningequality/studio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
28 lines (22 loc) · 1.01 KB
/
.eslintrc.js
File metadata and controls
28 lines (22 loc) · 1.01 KB
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
const esLintConfig = require('kolibri-format/.eslintrc');
esLintConfig.globals = {
$: false,
_: false,
MathQuill: false,
HandlebarsIntl: false,
MathJax: false,
jest: false,
};
esLintConfig.settings['import/resolver']['webpack'] = { config: require.resolve('./webpack.config.js')};
// Update resolver settings to allow for pnpm's symlinked structure
// https://github.com/import-js/eslint-plugin-import/issues/3110
const nodeResolverSettings = esLintConfig.settings['import/resolver']['node'];
esLintConfig.settings['import/resolver']['node'] = { ...(nodeResolverSettings || {}), preserveSymlinks: false };
// Remove once Vuetify is gone-- Vuetify uses too many unacceptable class names
esLintConfig.rules['kolibri/vue-component-class-name-casing'] = 0;
// Dumb
esLintConfig.rules['vue/no-v-text-v-html-on-component'] = 0;
// Vuetify's helper attributes use hyphens and they would
// not be recognized if auto-formatted to camel case
esLintConfig.rules['vue/attribute-hyphenation'] = 0;
module.exports = esLintConfig;