Skip to content

Commit

Permalink
chore: fix prettier and lint-staged (webpack#3536)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait authored Jul 20, 2021
1 parent 2e1151e commit 891ba4c
Show file tree
Hide file tree
Showing 265 changed files with 5,190 additions and 5,204 deletions.
42 changes: 21 additions & 21 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,58 +1,58 @@
'use strict';
"use strict";

module.exports = {
extends: ['webpack', 'prettier'],
parser: '@babel/eslint-parser',
extends: ["webpack", "prettier"],
parser: "@babel/eslint-parser",
parserOptions: {
sourceType: 'script',
sourceType: "script",
ecmaVersion: 2018,
},
env: {
node: true,
es6: true,
},
rules: {
curly: 'error',
'consistent-return': 'off',
'no-param-reassign': 'off',
'no-underscore-dangle': 'off',
'prefer-destructuring': ['error', { object: false, array: false }],
'prefer-rest-params': 'off',
strict: ['error', 'safe'],
'global-require': 'off',
curly: "error",
"consistent-return": "off",
"no-param-reassign": "off",
"no-underscore-dangle": "off",
"prefer-destructuring": ["error", { object: false, array: false }],
"prefer-rest-params": "off",
strict: ["error", "safe"],
"global-require": "off",
},
overrides: [
{
files: ['client-src/**/*.js'],
files: ["client-src/**/*.js"],
env: {
browser: true,
},
},
{
files: ['test/**/*.js'],
files: ["test/**/*.js"],
rules: {
'no-console': 'off',
"no-console": "off",
},
},
{
files: [
'test/client/**/*.js',
'test/e2e/**/*.js',
'test/fixtures/**/*.js',
'test/server/liveReload-option.test.js',
"test/client/**/*.js",
"test/e2e/**/*.js",
"test/fixtures/**/*.js",
"test/server/liveReload-option.test.js",
],
env: {
browser: true,
node: true,
},
},
{
files: ['examples/**/*.js'],
files: ["examples/**/*.js"],
env: {
browser: true,
},
rules: {
'no-console': 'off',
"no-console": "off",
},
},
],
Expand Down
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
version: 2
updates:
- package-ecosystem: npm
directory: '/'
directory: "/"
schedule:
interval: daily
time: '04:00'
time: "04:00"
timezone: Europe/Berlin
open-pull-requests-limit: 10
versioning-strategy: lockfile-only
13 changes: 0 additions & 13 deletions .prettierrc.js

This file was deleted.

10 changes: 5 additions & 5 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
'use strict';
"use strict";

module.exports = (api) => {
api.cache(true);

return {
presets: [
[
'@babel/preset-env',
"@babel/preset-env",
{
targets: {
node: '0.12',
node: "0.12",
},
},
],
],
plugins: ['@babel/plugin-transform-object-assign'],
plugins: ["@babel/plugin-transform-object-assign"],
env: {
test: {
plugins: ['@babel/plugin-transform-runtime'],
plugins: ["@babel/plugin-transform-runtime"],
},
},
};
Expand Down
Loading

0 comments on commit 891ba4c

Please sign in to comment.