Skip to content
This repository was archived by the owner on Jun 6, 2021. It is now read-only.

Commit acf4d92

Browse files
Change to vue cli and update all dependencies (kiwiirc#1271)
* Change to vue cli and update all dependencies * delete unused config files * dont split css into app/vendor * remove unneeded vue.config.js options * Fixes * fixes ChannelInfo.vue * fixes ContainerHeader.vue && Nicklist.vue * fixes InputConfirm.vue * fixes IrcInput.vue * fixes App.vue * linting * add stylelint * remove postcss.config.js && .postcssrc.js * add jsdoc * stylelinting * Move eslint rules into build/eslint && webpack files into build/webpack * Show coverage information when running tests
1 parent 335a723 commit acf4d92

File tree

99 files changed

+8813
-6332
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+8813
-6332
lines changed

.babelrc

-15
This file was deleted.

.browserslistrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
> 1%
2+
last 2 versions
3+
not ie <= 8

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
build/*.js
22
config/*.js
3+
tests/unit/coverage/

.eslintrc.js

+25-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const rulesDirPlugin = require('eslint-plugin-rulesdir');
2-
rulesDirPlugin.RULES_DIR = 'config/eslint/rules/';
2+
rulesDirPlugin.RULES_DIR = 'build/eslint/rules/';
33

44
module.exports = {
55
root: true,
@@ -8,8 +8,8 @@ module.exports = {
88
sourceType: 'module'
99
},
1010
extends: [
11-
'airbnb-base',
1211
'plugin:vue/recommended',
12+
'@vue/airbnb',
1313
'standard'
1414
],
1515
env: {
@@ -21,7 +21,9 @@ module.exports = {
2121
'vue',
2222
],
2323
// add your custom rules here
24-
'rules': {
24+
rules: {
25+
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
26+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
2527
'rulesdir/class-name-prefix': 'warn',
2628
'class-methods-use-this': 0,
2729
'comma-dangle': ['error', {
@@ -32,27 +34,44 @@ module.exports = {
3234
'functions': 'ignore'
3335
}],
3436
'import/extensions': 0,
37+
'import/no-cycle': 0,
3538
'import/no-extraneous-dependencies': 0,
3639
'import/no-unresolved': 0,
3740
'import/prefer-default-export': 0,
3841
'indent': ['error', 4],
42+
'max-classes-per-file': 0,
3943
'no-continue': 0,
44+
'no-else-return': 0,
4045
'no-multi-assign': 0,
4146
'no-param-reassign': ['error', { 'props': false }],
4247
'no-plusplus': 0,
4348
'no-prototype-builtins': 0,
44-
'prefer-promise-reject-errors': 0,
4549
'no-control-regex': 0,
4650
'object-shorthand': 0,
4751
'operator-linebreak': 0,
4852
'prefer-const': 0,
4953
'prefer-destructuring': 0,
54+
'prefer-object-spread': 0,
55+
'prefer-promise-reject-errors': 0,
5056
'prefer-template': 0,
5157
'semi': ['error', 'always'],
5258
'space-before-function-paren': ['error', 'never'],
5359
'vue/html-indent': ['error', 4],
5460
'vue/max-attributes-per-line': 0,
61+
'vue/multiline-html-element-content-newline': 0,
62+
'vue/no-unused-components': 0,
63+
'vue/no-v-html': 0,
5564
'vue/require-prop-types': 0,
5665
'vue/require-default-prop': 0,
57-
}
58-
}
66+
'vue/singleline-html-element-content-newline': 0,
67+
},
68+
overrides: [{
69+
files: [
70+
'**/__tests__/*.{j,t}s?(x)',
71+
'**/tests/unit/**/*.spec.{j,t}s?(x)',
72+
],
73+
env: {
74+
jest: true,
75+
},
76+
}],
77+
};

.gitignore

+22-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,26 @@
11
.DS_Store
2-
.idea/
3-
.vscode
4-
yarn-error.log
5-
node_modules/
6-
dist/
72
srcdocs/
8-
npm-debug.log
9-
test/unit/coverage
3+
dist/
4+
node_modules/
105
src/res/locales/available.json
116
static/config.local.json
7+
tests/coverage
8+
9+
10+
# local env files
11+
.env.local
12+
.env.*.local
13+
14+
# Log files
15+
npm-debug.log*
16+
yarn-debug.log*
17+
yarn-error.log*
18+
19+
# Editor directories and files
20+
.idea
21+
.vscode
22+
*.suo
23+
*.ntvs*
24+
*.njsproj
25+
*.sln
26+
*.sw*

.postcssrc.js

-10
This file was deleted.

.stylelintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ module.exports = {
44
indentation: 4,
55
'no-descending-specificity': null,
66
'declaration-no-important': true,
7-
}
7+
},
88
};

babel.config.js

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
module.exports = {
2+
presets: [['@vue/cli-plugin-babel/preset', { useBuiltIns: 'entry', modules: 'commonjs' }]],
3+
plugins: [
4+
['@babel/plugin-transform-runtime', { corejs: 3, useESModules: true }],
5+
],
6+
env: {
7+
test: {
8+
plugins: [
9+
[
10+
'istanbul',
11+
{
12+
exclude: ['**/*.spec.js'],
13+
},
14+
],
15+
],
16+
},
17+
},
18+
};

build/build.js

-53
This file was deleted.

build/check-versions.js

-54
This file was deleted.

build/utils.js

-101
This file was deleted.

0 commit comments

Comments
 (0)