Moving configs into package.json

This commit is contained in:
Jeff Avallone 2018-02-15 18:17:40 -05:00
parent d634985698
commit 74f1513311
4 changed files with 48 additions and 48 deletions

View File

@ -1,4 +0,0 @@
{
"presets": ["env", "react"],
"plugins": ["transform-class-properties", "syntax-dynamic-import"]
}

View File

@ -1,38 +0,0 @@
module.exports = {
'env': {
'browser': true,
'es6': true,
'node': true,
'jest/globals': true
},
'extends': [
'eslint:recommended',
'plugin:react/recommended'
],
'parser': 'babel-eslint',
'parserOptions': {
'sourceType': 'module'
},
'plugins': [
'react',
'jest'
],
'rules': {
'indent': [
'error',
2
],
'linebreak-style': [
'error',
'unix'
],
'quotes': [
'error',
'single'
],
'semi': [
'error',
'always'
]
}
};

View File

@ -27,6 +27,16 @@
"last 2 versions",
"not ie < 11"
],
"babel": {
"presets": ["env", "react"],
"plugins": ["transform-class-properties", "syntax-dynamic-import"]
},
"postcss": {
"plugins": {
"postcss-import": {},
"postcss-cssnext": {}
}
},
"jest": {
"clearMocks": true,
"setupTestFrameworkScriptFile": "<rootDir>/src/setup/jest.js",
@ -56,6 +66,44 @@
"html"
]
},
"eslintConfig": {
"env": {
"browser": true,
"es6": true,
"node": true,
"jest/globals": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module"
},
"plugins": [
"react",
"jest"
],
"rules": {
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
]
}
},
"dependencies": {
"@alienfast/i18next-loader": "^1.0.14",
"babel-core": "^6.26.0",

View File

@ -1,6 +0,0 @@
module.exports = {
plugins: [
require('postcss-import'),
require('postcss-cssnext')
]
};