Родитель
dfdbb3222c
Коммит
7a3b6e8ed0
45
.eslintrc.js
45
.eslintrc.js
|
@ -1,45 +0,0 @@
|
|||
module.exports = {
|
||||
env: {
|
||||
browser: true,
|
||||
es6: true,
|
||||
node: true,
|
||||
jest: true,
|
||||
},
|
||||
parser: 'babel-eslint',
|
||||
extends: [
|
||||
'eslint:recommended',
|
||||
'plugin:react/recommended',
|
||||
'plugin:flowtype/recommended',
|
||||
'prettier',
|
||||
'prettier/flowtype',
|
||||
'prettier/react',
|
||||
],
|
||||
parserOptions: {
|
||||
ecmaVersion: '2017',
|
||||
ecmaFeatures: {
|
||||
experimentalObjectRestSpread: true,
|
||||
jsx: true,
|
||||
},
|
||||
sourceType: 'module',
|
||||
},
|
||||
plugins: ['react', 'import', 'prettier', 'flowtype'],
|
||||
rules: {
|
||||
'prettier/prettier': [
|
||||
'error',
|
||||
{
|
||||
singleQuote: true,
|
||||
trailingComma: 'all',
|
||||
bracketSpacing: false,
|
||||
jsxBracketSameLine: false,
|
||||
parser: 'flow',
|
||||
},
|
||||
],
|
||||
|
||||
// overriding recommended rules
|
||||
'no-console': ['error', {allow: ['log', 'warn', 'error']}],
|
||||
'no-unused-vars': [
|
||||
'error',
|
||||
{argsIgnorePattern: '^_', varsIgnorePattern: '^_'},
|
||||
],
|
||||
},
|
||||
};
|
|
@ -0,0 +1,5 @@
|
|||
singleQuote: true
|
||||
trailingComma: all
|
||||
bracketSpacing: false
|
||||
jsxBracketSameLine: false
|
||||
parser: flow
|
|
@ -9,3 +9,6 @@ script:
|
|||
- yarn run check
|
||||
- yarn run flow-coverage
|
||||
- yarn run test-coverage && codecov
|
||||
# If there are any warnings left int the code, this build
|
||||
# will fail because Travis sets environment variable 'CI=true'.
|
||||
- yarn run build
|
||||
|
|
12
package.json
12
package.json
|
@ -3,7 +3,6 @@
|
|||
"version": "2.1.0",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"eslint-plugin-react": "7.6.1",
|
||||
"gh-pages": "1.1.0",
|
||||
"photon-ant": "0.1.4",
|
||||
"react": "16.2.0",
|
||||
|
@ -31,8 +30,8 @@
|
|||
"deploy": "yarn run build && gh-pages --add --dist build/",
|
||||
"deploy-dev":
|
||||
"PUBLIC_URL=$npm_package_homepage_dev yarn run deploy --dest dev/",
|
||||
"lint": "eslint *.js src",
|
||||
"lint-fix": "yarn lint --fix",
|
||||
"lint": "prettier --list-different src/**/*.js",
|
||||
"lint-fix": "yarn lint --write",
|
||||
"flow": "flow",
|
||||
"flow-coverage":
|
||||
"flow-coverage-report -i 'src/**/*.js' -x 'src/**/*.test.js' -t html -t text",
|
||||
|
@ -45,13 +44,6 @@
|
|||
"codecov": "3.0.0",
|
||||
"enzyme": "3.3.0",
|
||||
"enzyme-adapter-react-16": "1.1.1",
|
||||
"eslint": "4.7.2",
|
||||
"eslint-config-prettier": "2.9.0",
|
||||
"eslint-plugin-flowtype": "2.42.0",
|
||||
"eslint-plugin-import": "2.8.0",
|
||||
"eslint-plugin-node": "6.0.0",
|
||||
"eslint-plugin-prettier": "2.6.0",
|
||||
"eslint-plugin-promise": "3.6.0",
|
||||
"flow-bin": "0.65.0",
|
||||
"flow-coverage-report": "0.4.1",
|
||||
"flow-typed": "2.3.0",
|
||||
|
|
1582
yarn.lock
1582
yarn.lock
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Загрузка…
Ссылка в новой задаче