babel-eslint
Advanced tools
Comparing version 7.0.0 to 7.1.0
@@ -163,3 +163,3 @@ var source; | ||
if (path.isRestProperty() || path.isSpreadProperty()) { | ||
node.type = "Experimental" + node.type; | ||
node.type = `Experimental${node.type}`; | ||
} | ||
@@ -166,0 +166,0 @@ |
@@ -56,3 +56,3 @@ module.exports = function (token, tt, source) { | ||
}; | ||
token.value = "/" + value.pattern + "/" + value.flags; | ||
token.value = `/${value.pattern}/${value.flags}`; | ||
} | ||
@@ -59,0 +59,0 @@ |
@@ -386,3 +386,4 @@ var babylonToEspree = require("./babylon-to-espree"); | ||
"objectRestSpread", | ||
"trailingFunctionCommas" | ||
"trailingFunctionCommas", | ||
"dynamicImport" | ||
] | ||
@@ -400,3 +401,3 @@ }; | ||
// remove trailing "(LINE:COLUMN)" acorn message and add in esprima syntax error message start | ||
err.message = "Line " + err.lineNumber + ": " + err.message.replace(/ \((\d+):(\d+)\)$/, ""); | ||
err.message = `Line ${err.lineNumber}: ${err.message.replace(/ \((\d+):(\d+)\)$/, "")}`; | ||
} | ||
@@ -403,0 +404,0 @@ |
{ | ||
"name": "babel-eslint", | ||
"version": "7.0.0", | ||
"version": "7.1.0", | ||
"description": "Custom parser for ESLint", | ||
@@ -23,4 +23,4 @@ "main": "index.js", | ||
"eslint": "cd eslint && mocha -c tests/lib/rules/*.js -r ../eslint-tester.js", | ||
"test": "mocha", | ||
"test-ci": "npm test && npm run lint", | ||
"test": "npm run lint && npm run test-only", | ||
"test-only": "mocha", | ||
"lint": "eslint index.js babylon-to-espree test", | ||
@@ -41,6 +41,7 @@ "fix": "eslint index.js babylon-to-espree test --fix", | ||
"devDependencies": { | ||
"babel-eslint": "^7.0.0", | ||
"eslint": "^3.6.0", | ||
"eslint-config-babel": "^1.0.2", | ||
"eslint-config-babel": "^2.0.1", | ||
"eslint-plugin-babel": "^3.3.0", | ||
"eslint-plugin-flow-vars": "^0.5.0", | ||
"eslint-plugin-flowtype": "^2.4.0", | ||
"espree": "^3.3.1", | ||
@@ -47,0 +48,0 @@ "mocha": "^3.0.0" |
@@ -7,5 +7,5 @@ # babel-eslint | ||
#### Note: You don't need to use babel-eslint if you are only using ES6/ES2015. ESLint actually supports ES6/ES7, JSX, and object rest/spread by default now. | ||
#### Note: You don't need to use babel-eslint if you are using ES2015 (ES6), ES2016 (ES7) or ES2017 (ES8). ESLint actually supports ES2015/ES2016/ES2017, JSX, and object rest/spread by default now. | ||
##### At the moment, you'll need it if you use stuff like class properties, decorators, async/await, types. | ||
##### At the moment, you'll need it if you use stuff like class properties, decorators, types. | ||
@@ -16,3 +16,3 @@ > If there is an issue, first check if it can be reproduced with the regular parser or with the latest versions of `eslint` and `babel-eslint`! | ||
> Note that the `ecmaFeatures` config property may still be required for ESLint to work properly with features not in ECMAScript 5 by default. Examples are `globalReturn` and `modules`) | ||
> Note that the `ecmaFeatures` config property may still be required for ESLint to work properly with features not in ECMAScript 5 by default. Examples are `globalReturn` and `modules`). | ||
@@ -19,0 +19,0 @@ ## Known Issues |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34685
837
7