Skip to content

Commit bccae41

Browse files
committed
build: update build tools
1 parent 379cf4b commit bccae41

File tree

5 files changed

+1811
-1925
lines changed

5 files changed

+1811
-1925
lines changed

.browserslistrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# https://github.com/browserslist/browserslist#readme
2+
3+
>= 0.5%
4+
last 2 major versions
5+
not dead
6+
Chrome >= 60
7+
Firefox >= 60
8+
Firefox ESR
9+
iOS >= 12
10+
Safari >= 12
11+
not Explorer <= 11

.eslintrc

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

.eslintrc.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
module.exports = {
2+
// parser: '@typescript-eslint/parser', // Specifies the ESLint parser
3+
parserOptions: {
4+
ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features
5+
sourceType: 'module', // Allows for the use of imports
6+
ecmaFeatures: {
7+
jsx: true, // Allows for the parsing of JSX
8+
},
9+
},
10+
settings: {
11+
react: {
12+
version: 'detect', // Tells eslint-plugin-react to automatically detect the version of React to use
13+
},
14+
},
15+
extends: [
16+
'react-app',
17+
'plugin:react/recommended', // Uses the recommended rules from @eslint-plugin-react
18+
'plugin:prettier/recommended', // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
19+
],
20+
plugins: ['react', 'react-hooks'],
21+
rules: {
22+
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
23+
// e.g. "@typescript-eslint/explicit-function-return-type": "off",
24+
},
25+
}

package.json

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
"classnames": "^2.3.1",
3636
"core-js": "^3.10.1",
3737
"enzyme": "^3.11.0",
38-
"node-sass": "^5.0.0",
3938
"prop-types": "^15.7.2",
4039
"react": "^17.0.2",
4140
"react-app-polyfill": "^2.0.0",
@@ -46,14 +45,17 @@
4645
},
4746
"devDependencies": {
4847
"auto-changelog": "~2.2.1",
48+
"eslint": "^7.27.0",
49+
"eslint-config-prettier": "^8.3.0",
4950
"eslint-plugin-prettier": "^3.3.1",
50-
"gatsby-plugin-sitemap": "^3.3.0",
51+
"node-sass": "^5.0.0",
5152
"prettier": "2.2.1",
5253
"react-scripts": "^4.0.3"
5354
},
5455
"scripts": {
5556
"start": "react-scripts start",
5657
"build": "react-scripts build",
58+
"lint": "eslint 'src/**/*.js'",
5759
"test": "react-scripts test",
5860
"test:cov": "npm test -- --coverage --watchAll=false",
5961
"test:debug": "react-scripts --inspect-brk test --runInBand",
@@ -63,15 +65,6 @@
6365
"bugs": {
6466
"url": "https://github.com/coreui/coreui-free-react-admin-template/issues"
6567
},
66-
"eslintConfig": {
67-
"extends": "react-app"
68-
},
69-
"browserslist": [
70-
">0.2%",
71-
"not dead",
72-
"not ie <= 10",
73-
"not op_mini all"
74-
],
7568
"jest": {
7669
"collectCoverageFrom": [
7770
"src/**/*.{js,jsx}",

0 commit comments

Comments
 (0)