зеркало из https://github.com/mozilla/normandy.git
Remove ESLint
This commit is contained in:
Родитель
2149f48b49
Коммит
6e5a6fe37e
|
@ -14,15 +14,6 @@ actions:
|
|||
fix: sort-requirements {files}
|
||||
include: "requirements/*.txt"
|
||||
|
||||
eslint:
|
||||
run: yarn eslint {files}
|
||||
fix: yarn eslint --fix {files}
|
||||
include:
|
||||
- "*.js"
|
||||
- "*.jsx"
|
||||
exclude:
|
||||
- ".eslintrc.js"
|
||||
|
||||
yarn-audit:
|
||||
run: yarn audit
|
||||
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
env:
|
||||
browser: true
|
|
@ -67,7 +67,6 @@ export async function postExecutionHook(normandy) {
|
|||
if (!seenRecipeIds.includes(study.recipeId)) {
|
||||
normandy.log(`Stopping study for recipe ${study.recipeId}.`, 'debug');
|
||||
try {
|
||||
// eslint-disable-next-line no-await-in-loop
|
||||
await studies.stop(study.recipeId, 'recipe-not-seen');
|
||||
} catch (err) {
|
||||
normandy.log(`Error while stopping study for recipe ${study.recipeId}: ${err}`, 'error');
|
||||
|
|
|
@ -113,7 +113,6 @@ export async function postExecutionHook(normandy) {
|
|||
const activeExperiments = await normandy.preferenceExperiments.getAllActive();
|
||||
for (const experiment of activeExperiments) {
|
||||
if (!seenExperimentNames.includes(experiment.name)) {
|
||||
// eslint-disable-next-line no-await-in-loop
|
||||
await normandy.preferenceExperiments.stop(experiment.name, {
|
||||
resetValue: true,
|
||||
reason: 'recipe-not-seen',
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
env:
|
||||
jasmine: true
|
|
@ -1,2 +0,0 @@
|
|||
env:
|
||||
jasmine: true
|
|
@ -1,5 +1,3 @@
|
|||
/* eslint-disable import/prefer-default-export */
|
||||
|
||||
let _recipeId = 0;
|
||||
/**
|
||||
* Factory for creating recipe objects as returned by the API.
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
/* eslint-env node */
|
||||
/* eslint-disable no-var, func-names, prefer-arrow-callback, prefer-template */
|
||||
|
||||
// Karma configuration
|
||||
|
||||
|
||||
|
|
11
package.json
11
package.json
|
@ -9,8 +9,7 @@
|
|||
"scripts": {
|
||||
"watch": "webpack --config ./webpack.config.js --watch",
|
||||
"build": "webpack --config ./webpack.config.js",
|
||||
"lint": "yarn lint:js && yarn lint:js-security",
|
||||
"lint:js": "eslint normandy client karma.conf.js webpack.config.js",
|
||||
"lint": "yarn lint:js-security",
|
||||
"lint:js-security": "yarn audit"
|
||||
},
|
||||
"license": "MPL-2.0",
|
||||
|
@ -29,14 +28,6 @@
|
|||
"babel-plugin-import": "1.13.0",
|
||||
"babel-plugin-syntax-async-functions": "6.13.0",
|
||||
"babili-webpack-plugin": "0.1.2",
|
||||
"eslint": "6.8.0",
|
||||
"eslint-config-airbnb": "17.1.1",
|
||||
"eslint-import-resolver-webpack": "0.12.1",
|
||||
"eslint-plugin-babel": "5.3.0",
|
||||
"eslint-plugin-import": "2.20.1",
|
||||
"eslint-plugin-jasmine": "4.1.0",
|
||||
"eslint-plugin-jsx-a11y": "6.2.3",
|
||||
"eslint-plugin-react": "7.19.0",
|
||||
"gh-pages": "2.2.0",
|
||||
"webpack": "4.42.0",
|
||||
"webpack-cli": "3.3.11"
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
/* eslint-env node */
|
||||
/* eslint-disable no-var, func-names, prefer-arrow-callback, prefer-template, comma-dangle */
|
||||
var path = require('path');
|
||||
var webpack = require('webpack');
|
||||
var childProcess = require('child_process');
|
||||
|
|
1303
yarn.lock
1303
yarn.lock
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Загрузка…
Ссылка в новой задаче