Permalink
Browse files

more aggressive linting

  • Loading branch information...
1 parent 1e98a69 commit 93ec6672285967d9baceca264b3007a5b271713e @Rich-Harris Rich-Harris committed Jul 11, 2016
Showing with 132 additions and 148 deletions.
  1. +2 −0 .eslintignore
  2. +10 −1 .eslintrc
  3. +2 −2 src/ast/attachScopes.js
  4. +1 −1 src/rollup.js
  5. +0 −20 test/.babelrc
  6. +117 −124 test/test.js
View
@@ -0,0 +1,2 @@
+test/*
+!test/test.js
View
@@ -7,7 +7,16 @@
"space-before-blocks": [ 2, "always" ],
"space-before-function-paren": [ 2, "always" ],
"no-mixed-spaces-and-tabs": [ 2, "smart-tabs" ],
- "no-cond-assign": [ 0 ]
+ "no-cond-assign": [ 0 ],
+ "object-shorthand": [2, "always" ],
+ "no-const-assign": 2,
+ "no-class-assign": 2,
+ "no-this-before-super": 2,
+ "no-var": 2,
+ "quote-props": [ 2, "as-needed" ],
+ "one-var": [ 2, "never" ],
+ "prefer-arrow-callback": 2,
+ "arrow-spacing": 2
},
"env": {
"es6": true,
@@ -2,8 +2,8 @@ import { walk } from 'estree-walker';
import Scope from './Scope.js';
const blockDeclarations = {
- 'const': true,
- 'let': true
+ const: true,
+ let: true
};
export default function attachScopes ( statement ) {
View
@@ -68,7 +68,7 @@ export function rollup ( options ) {
return rendered;
}
- var result = {
+ const result = {
imports: bundle.externalModules.map( module => module.id ),
exports: keys( bundle.entryModule.exports ),
modules: bundle.orderedModules.map( module => module.toJSON() ),
View
@@ -1,20 +0,0 @@
-{
- "whitelist": [
- "es6.arrowFunctions",
- "es6.blockScoping",
- "es6.classes",
- "es6.constants",
- "es6.destructuring",
- "es6.modules",
- "es6.parameters",
- "es6.properties.shorthand",
- "es6.spread",
- "es6.templateLiterals"
- ],
- "loose": [
- "es6.classes",
- "es6.destructuring"
- ],
- "compact": false,
- "sourceMap": true
-}
Oops, something went wrong.

0 comments on commit 93ec667

Please sign in to comment.