Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 07bdd1b

Browse files
authored
Merge pull request #42 from afontcu/master
Add prettier and lint-staged
2 parents 5efe597 + 9a2fc92 commit 07bdd1b

29 files changed

+915
-196
lines changed

‎.eslintrc.js

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,25 @@
1-
// http://eslint.org/docs/user-guide/configuring
2-
31
module.exports = {
42
root: true,
53
parserOptions: {
64
parser: 'babel-eslint',
75
ecmaVersion: 2017,
8-
sourceType: "module"
6+
sourceType: 'module'
97
},
108
env: {
119
browser: true,
1210
jest: true
1311
},
14-
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
1512
extends: [
1613
'standard',
17-
'plugin:vue/recommended'
14+
'plugin:vue/recommended',
15+
'eslint:recommended',
16+
'prettier/vue',
17+
'plugin:prettier/recommended'
1818
],
19-
// required to lint *.vue files
2019
plugins: [
2120
'vue'
2221
],
23-
// add your custom rules here
2422
rules: {
25-
// allow paren-less arrow functions
26-
'arrow-parens': 0,
27-
// allow async-await
28-
'generator-star-spacing': 0,
29-
'vue/html-closing-bracket-newline': 0,
30-
'vue/singleline-html-element-content-newline': 0,
31-
'vue/multiline-html-element-content-newline': 0,
32-
'vue/html-closing-bracket-spacing': 0
23+
'no-console': 'off'
3324
}
3425
}

‎.prettierignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
coverage
3+
dist
4+
build
5+
.build
6+
.vscode

‎.prettierrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
proseWrap: 'always',
3+
semi: false,
4+
singleQuote: true
5+
}

‎jest.config.js

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
module.exports = {
2-
moduleDirectories: [
3-
'node_modules',
4-
'src'
5-
],
6-
moduleFileExtensions: [
7-
'js',
8-
'vue'
9-
],
2+
moduleDirectories: ['node_modules', 'src'],
3+
moduleFileExtensions: ['js', 'vue'],
104
moduleNameMapper: {
115
'@testing-library/vue': '<rootDir>/src/vue-testing-library.js'
126
},
@@ -25,7 +19,5 @@ module.exports = {
2519
'^.+\\.js$': '<rootDir>/node_modules/babel-jest',
2620
'.*\\.(vue)$': '<rootDir>/node_modules/vue-jest'
2721
},
28-
snapshotSerializers: [
29-
'<rootDir>/node_modules/jest-serializer-vue'
30-
]
22+
snapshotSerializers: ['<rootDir>/node_modules/jest-serializer-vue']
3123
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /