Skip to content

Commit

Permalink
Merge pull request #2 from Wolox/configuration
Browse files Browse the repository at this point in the history
Change configuration
  • Loading branch information
NaomiFPassarelli authored Oct 2, 2017
2 parents af876cb + 8812a2e commit d615db4
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 31 deletions.
52 changes: 26 additions & 26 deletions generators/app/templates/eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,43 +4,43 @@ module.exports = {
node: true,
browser: true
},
parser: 'babel-eslint',
parser: "babel-eslint",
parserOptions: {
ecmaFeatures: {
experimentalObjectRestSpread: true,
jsx: true
},
sourceType: 'module'
sourceType: "module"
},
plugins: ['react', 'prettier'],
plugins: ["react", "prettier"],
extends: [
'eslint:recommended',
'airbnb',
'plugin:react/recommended',
'prettier',
'prettier/react'
"eslint:recommended",
"airbnb",
"plugin:react/recommended",
"prettier",
"prettier/react"
],
globals: {
__DEV__: true
},
rules: {
'prettier/prettier': ['error', { printWidth: 110, singleQuote: true }],
'no-invalid-this': 'off',
'no-return-assign': 'off',
'no-param-reassign': 'off',
'no-nested-ternary': 'off',
'react/require-default-props': 'off',
'react/jsx-filename-extension': ['error', { extensions: ['.js'] }],
'react/prop-types': [2, { ignore: ['style', 'children', 'dispatch'] }],
'import/order': ['error', { 'newlines-between': 'always' }],
'import/prefer-default-export': 'off',
'import/no-unresolved': 'error',
'import/extensions': ['error', { js: 'never' }],
'import/named': 'error',
'import/default': 'error',
'import/namespace': 'error',
'import/no-absolute-path': 'error',
'linebreak-style': 0,
'jsx-a11y/href-no-hash': 'off'
"prettier/prettier": ["error", { printWidth: 110, singleQuote: true }],
"no-invalid-this": "off",
"no-return-assign": "off",
"no-param-reassign": "off",
"no-nested-ternary": "off",
"react/require-default-props": "off",
"react/jsx-filename-extension": ["error", { extensions: [".js"] }],
"react/prop-types": [2, { ignore: ["style", "children", "dispatch"] }],
"import/order": ["error", { "newlines-between": "always" }],
"import/prefer-default-export": "off",
"import/no-unresolved": "error",
"import/extensions": ["error", { js: "never" }],
"import/named": "error",
"import/default": "error",
"import/namespace": "error",
"import/no-absolute-path": "error",
"linebreak-style": 0,
"jsx-a11y/href-no-hash": "off"
}
};
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"name": "generator-react",
"name": "wolox-react-bootstrap",
"version": "0.1.0",
"description": "generator-react",
"description": "wolox-react-bootstrap",
"files": ["index.js", "generators"],
"main": "app/index.js",
"scripts": {
"start": "./node_modules/react-scripts/bin/react-scripts.js start",
"build": "./node_modules/react-scripts/bin/react-scripts.js build",
"test": "./node_modules/react-scripts/bin/react-scripts.js test --env=jsdom",
"test":
"./node_modules/react-scripts/bin/react-scripts.js test --env=jsdom",
"eject": "./node_modules/react-scripts/bin/react-scripts.js eject",
"deploy": "npm run build",
"prepublish": "npm run test && npm run build"
"deploy": "npm run build"
},
"repository": "git+https://github.com/Wolox/react-bootstrap.git",
"keywords": ["yeoman-generator", "react", "react-bootstrap"],
Expand Down

0 comments on commit d615db4

Please sign in to comment.