File tree Expand file tree Collapse file tree
packages/eslint-config-pebblecode Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ and React. It requires `eslint` and `eslint-plugin-react`.
14141 . ` npm install --save-dev eslint-config-pebblecode eslint-plugin-react eslint `
15152 . add ` "extends": "pebblecode" ` to your .eslintrc
1616
17- ### eslint-config-pebblecode/base
17+ ### eslint-config-pebblecode/basestrict
1818
1919Lints ES2015 but does not lint React. Requires ` eslint ` .
2020
Original file line number Diff line number Diff line change @@ -19,6 +19,6 @@ module.exports = {
1919 // restrict usage of specified node modules
2020 'no-restricted-modules' : 0 ,
2121 // disallow use of synchronous methods (off by default)
22- 'no-sync' : 0
22+ 'no-sync' : 0.
2323 }
2424} ;
Original file line number Diff line number Diff line change 11module . exports = {
22 'rules' : {
3- // babel inserts `'use strict';` for us
4- 'strict' : [ 2 , 'never' ]
3+ // babel inserts `'use strict';` for us but we also run node without babel so strict is allowed.
4+ 'strict' : 0
55 }
66} ;
Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ function lint(text) {
2020
2121function wrapComponent ( body ) {
2222 return `
23- import React from 'react';
24- export default class MyComponent extends React.Component {
25- ${ body }
23+ import React from 'react';
24+ export default class MyComponent extends React.Component {
25+ ${ body }
2626}
2727` ;
2828}
You can’t perform that action at this time.
0 commit comments