Skip to content

Commit 73b160b

Browse files
committed
Add prettier & update eslint
1 parent 116be2a commit 73b160b

File tree

11 files changed

+1848
-1815
lines changed

11 files changed

+1848
-1815
lines changed

.eslintrc

Lines changed: 0 additions & 39 deletions
This file was deleted.

.eslintrc.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
"use strict";
2+
module.exports = {
3+
extends: ["eslint:recommended", "prettier", "prettier/react"],
4+
parserOptions: {
5+
sourceType: "module",
6+
ecmaVersion: "2018",
7+
ecmaFeatures: {
8+
jsx: true,
9+
},
10+
},
11+
env: {
12+
es6: true,
13+
browser: true,
14+
},
15+
plugins: ["prettier"],
16+
rules: {
17+
"prettier/prettier": "error",
18+
},
19+
};

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"printWidth": 100,
3+
"trailingComma": "all",
4+
"parser": "babylon"
5+
}

jest.config.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* eslint-env node */
2+
"use strict";
13
// For a detailed explanation regarding each configuration property, visit:
24
// https://jestjs.io/docs/en/configuration.html
35

@@ -133,15 +135,10 @@ module.exports = {
133135
// testLocationInResults: false,
134136

135137
// The glob patterns Jest uses to detect test files
136-
testMatch: [
137-
"**/?(*.)+(spec|test).js?(x)",
138-
],
138+
testMatch: ["**/?(*.)+(spec|test).js?(x)"],
139139

140140
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
141-
testPathIgnorePatterns: [
142-
"/node_modules/",
143-
"webpack.config.test.js",
144-
],
141+
testPathIgnorePatterns: ["/node_modules/", "webpack.config.test.js"],
145142

146143
// The regexp pattern Jest uses to detect test files
147144
// testRegex: "",

0 commit comments

Comments
 (0)