From 21e4ea6044035cb371f95fd04a9aa45b53af0029 Mon Sep 17 00:00:00 2001 From: liabru Date: Sat, 28 Sep 2019 15:15:54 +0100 Subject: [PATCH] Added config and test files to lint --- .eslintrc | 6 +++++- Gulpfile.js | 1 + package.json | 2 +- test/Examples.spec.js | 2 ++ webpack.config.js | 1 + webpack.examples.config.js | 1 + 6 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.eslintrc b/.eslintrc index a88e884..eaadcdb 100644 --- a/.eslintrc +++ b/.eslintrc @@ -66,7 +66,11 @@ "Svg": false, "Metrics": false, "Example": false, - "__MATTER_VERSION__": false + "__MATTER_VERSION__": false, + "jest": false, + "test": false, + "expect": false, + "describe": false }, "extends": "eslint:recommended" } diff --git a/Gulpfile.js b/Gulpfile.js index c4c4f22..cd7bccb 100644 --- a/Gulpfile.js +++ b/Gulpfile.js @@ -1,3 +1,4 @@ +/* eslint-env es6 */ "use strict"; const gulp = require('gulp'); diff --git a/package.json b/package.json index dbd9ab2..d895fa9 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "build": "webpack --mode=production & webpack --mode=production --env.MINIMIZE", "build-alpha": "webpack --mode=production --env.EDGE & webpack --mode=production --env.MINIMIZE --env.EDGE", "build-examples": "webpack --config webpack.examples.config.js --mode=production --env.EDGE & webpack --config webpack.examples.config.js --mode=production --env.MINIMIZE --env.EDGE", - "lint": "eslint 'src/**/*.js' 'demo/js/Demo.js' 'examples/*.js'", + "lint": "eslint 'src/**/*.js' 'demo/js/Demo.js' 'examples/*.js' 'test/*.spec.js' 'webpack.*.js' 'Gulpfile.js'", "doc": "gulp doc", "test": "jest", "test-snapshot": "TEST_SNAPSHOTS=true jest --ci", diff --git a/test/Examples.spec.js b/test/Examples.spec.js index fea578a..7d1f791 100644 --- a/test/Examples.spec.js +++ b/test/Examples.spec.js @@ -1,3 +1,5 @@ +/* eslint-env es6 */ +/* eslint no-global-assign: 0 */ "use strict"; const Common = require('./Common'); diff --git a/webpack.config.js b/webpack.config.js index 28236f5..1a582f8 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,3 +1,4 @@ +/* eslint-env es6 */ "use strict"; const webpack = require('webpack'); diff --git a/webpack.examples.config.js b/webpack.examples.config.js index c82f779..5596e1c 100644 --- a/webpack.examples.config.js +++ b/webpack.examples.config.js @@ -1,3 +1,4 @@ +/* eslint-env es6 */ "use strict"; const webpack = require('webpack');