mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
* 🎉 Working example of storybook and vue
* remove the older storybook version
* build storybook after client was built
* move storybook:build to npm-postintall
* remove automatically created eslint-disables + fix comment
* add back needed eslint :P + add @storybook/vue as devDep
* fix packagelock
* fix lint
* auto fixed lints + ignore dist/ node_modules/
* update package-lock.json
* add postbuild and readme
* add back customize config
* fix readme
* fix links in readme
* revert postbuild command
32 lines
797 B
JavaScript
32 lines
797 B
JavaScript
/* eslint-disable import/no-commonjs */
|
|
module.exports = {
|
|
root: true,
|
|
env: {
|
|
node: true,
|
|
},
|
|
extends: [
|
|
'habitrpg/lib/vue',
|
|
],
|
|
ignorePatterns: ['dist/', 'node_modules/'],
|
|
rules: {
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
// TODO find a way to let eslint understand webpack aliases
|
|
'import/no-unresolved': 'off',
|
|
'vue/no-v-html': 'off',
|
|
'vue/html-self-closing': ['error', {
|
|
html: {
|
|
void: 'never',
|
|
// Otherwise it results in self closing span(s) and div(s)
|
|
normal: 'never',
|
|
component: 'always',
|
|
},
|
|
svg: 'never',
|
|
math: 'never',
|
|
}],
|
|
},
|
|
parserOptions: {
|
|
parser: 'babel-eslint',
|
|
},
|
|
};
|