Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
chore(dependencies): update eslint-config-airbnb-base
Browse files Browse the repository at this point in the history
  • Loading branch information
abdonrd committed Nov 10, 2021
1 parent 50f1a16 commit 969b313
Show file tree
Hide file tree
Showing 99 changed files with 83 additions and 267 deletions.
5 changes: 2 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
/**
* @license
*
* Copyright IBM Corp. 2019, 2020
* Copyright IBM Corp. 2019, 2021
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const restrictedGlobals = require('eslint-restricted-globals');

module.exports = {
Expand Down Expand Up @@ -37,6 +35,7 @@ module.exports = {
},
],
'import/no-unresolved': [2, { ignore: ['^carbon-web-components/es/icons/'] }],
'max-classes-per-file': 0,
},
settings: {
'import/resolver': {
Expand Down
4 changes: 1 addition & 3 deletions .storybook/addon-carbon-theme/index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
/**
* @license
*
* Copyright IBM Corp. 2020
* Copyright IBM Corp. 2020, 2021
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

'use strict';

function managerEntries(entry = []) {
return [...entry, require.resolve('./register.tsx')];
}
Expand Down
4 changes: 1 addition & 3 deletions .storybook/addon-knobs-args/index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
/**
* @license
*
* Copyright IBM Corp. 2020
* Copyright IBM Corp. 2020, 2021
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

'use strict';

function config(entry = []) {
return [...entry, require.resolve('./decorators.ts')];
}
Expand Down
4 changes: 1 addition & 3 deletions .storybook/angular/main.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
/**
* @license
*
* Copyright IBM Corp. 2020
* Copyright IBM Corp. 2020, 2021
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const deepReplace = require('../../tools/deep-replace');
const { addons, managerWebpack, webpackFinal } = require('../main');

Expand Down
2 changes: 0 additions & 2 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const path = require('path');
const sass = require('sass');
const rtlcss = require('rtlcss');
Expand Down
4 changes: 1 addition & 3 deletions .storybook/react/main.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
/**
* @license
*
* Copyright IBM Corp. 2020
* Copyright IBM Corp. 2020, 2021
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const { readFile, writeFile } = require('fs');
const path = require('path');
const { promisify } = require('util');
Expand Down
4 changes: 1 addition & 3 deletions .storybook/vue/main.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
/**
* @license
*
* Copyright IBM Corp. 2020
* Copyright IBM Corp. 2020, 2021
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const deepReplace = require('../../tools/deep-replace');
const { addons, managerWebpack, webpackFinal } = require('../main');

Expand Down
Binary file not shown.
Binary file not shown.
4 changes: 1 addition & 3 deletions examples/codesandbox/basic/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
/**
* @license
*
* Copyright IBM Corp. 2020
* Copyright IBM Corp. 2020, 2021
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const HtmlWebpackPlugin = require('html-webpack-plugin');

module.exports = {
Expand Down
4 changes: 1 addition & 3 deletions examples/codesandbox/form/basic/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
/**
* @license
*
* Copyright IBM Corp. 2020
* Copyright IBM Corp. 2020, 2021
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const HtmlWebpackPlugin = require('html-webpack-plugin');

module.exports = {
Expand Down
4 changes: 1 addition & 3 deletions examples/codesandbox/form/redux-form/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
/**
* @license
*
* Copyright IBM Corp. 2020
* Copyright IBM Corp. 2020, 2021
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const HtmlWebpackPlugin = require('html-webpack-plugin');

module.exports = {
Expand Down
4 changes: 1 addition & 3 deletions examples/codesandbox/ie/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
/**
* @license
*
* Copyright IBM Corp. 2019, 2020
* Copyright IBM Corp. 2019, 2021
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');

Expand Down
4 changes: 1 addition & 3 deletions examples/codesandbox/react-ssr/app.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
/**
* @license
*
* Copyright IBM Corp. 2020
* Copyright IBM Corp. 2020, 2021
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const express = require('express');
const webpack = require('webpack');
const webpackDevMiddleware = require('webpack-dev-middleware');
Expand Down
4 changes: 1 addition & 3 deletions examples/codesandbox/react-ssr/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
/**
* @license
*
* Copyright IBM Corp. 2020
* Copyright IBM Corp. 2020, 2021
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

'use strict';

module.exports = {
module: {
rules: [
Expand Down
4 changes: 1 addition & 3 deletions examples/codesandbox/react/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
/**
* @license
*
* Copyright IBM Corp. 2020
* Copyright IBM Corp. 2020, 2021
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const HtmlWebpackPlugin = require('html-webpack-plugin');

module.exports = {
Expand Down
4 changes: 1 addition & 3 deletions examples/codesandbox/rtl/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
/**
* @license
*
* Copyright IBM Corp. 2019
* Copyright IBM Corp. 2019, 2021
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const path = require('path');
const webpack = require('webpack');
const acceptLanguageParser = require('accept-language-parser');
Expand Down
4 changes: 1 addition & 3 deletions examples/codesandbox/styling/custom-style/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
/**
* @license
*
* Copyright IBM Corp. 2020
* Copyright IBM Corp. 2020, 2021
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const HtmlWebpackPlugin = require('html-webpack-plugin');

module.exports = {
Expand Down
2 changes: 0 additions & 2 deletions examples/codesandbox/styling/theme-zoning/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const sass = require('sass');
const autoprefixer = require('autoprefixer');
const HtmlWebpackPlugin = require('html-webpack-plugin');
Expand Down
2 changes: 0 additions & 2 deletions gulp-tasks/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const gulp = require('gulp');
require('./build/dist');
require('./build/modules');
Expand Down
2 changes: 0 additions & 2 deletions gulp-tasks/build/dist.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const fs = require('fs');
const gulp = require('gulp');
const path = require('path');
Expand Down
2 changes: 0 additions & 2 deletions gulp-tasks/build/modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const gulp = require('gulp');
require('./modules/css');
require('./modules/icon-types');
Expand Down
2 changes: 0 additions & 2 deletions gulp-tasks/build/modules/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const asyncDone = require('async-done');
const autoprefixer = require('autoprefixer');
const cleanCSS = require('gulp-clean-css');
Expand Down
2 changes: 0 additions & 2 deletions gulp-tasks/build/modules/icon-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const asyncDone = require('async-done');
const gulp = require('gulp');
const header = require('gulp-header');
Expand Down
2 changes: 0 additions & 2 deletions gulp-tasks/build/modules/icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const asyncDone = require('async-done');
const gulp = require('gulp');
const header = require('gulp-header');
Expand Down
2 changes: 0 additions & 2 deletions gulp-tasks/build/modules/react-defs.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const asyncDone = require('async-done');
const babel = require('gulp-babel');
const gulp = require('gulp');
Expand Down
2 changes: 0 additions & 2 deletions gulp-tasks/build/modules/react-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const asyncDone = require('async-done');
const babel = require('gulp-babel');
const gulp = require('gulp');
Expand Down
2 changes: 0 additions & 2 deletions gulp-tasks/build/modules/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const asyncDone = require('async-done');
const gulp = require('gulp');
const babel = require('gulp-babel');
Expand Down
2 changes: 0 additions & 2 deletions gulp-tasks/build/modules/scripts-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const asyncDone = require('async-done');
const babel = require('gulp-babel');
const filter = require('gulp-filter');
Expand Down
2 changes: 0 additions & 2 deletions gulp-tasks/build/modules/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const babel = require('gulp-babel');
const filter = require('gulp-filter');
const gulp = require('gulp');
Expand Down
2 changes: 0 additions & 2 deletions gulp-tasks/build/modules/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const gulp = require('gulp');
const path = require('path');
const sourcemaps = require('gulp-sourcemaps');
Expand Down
2 changes: 0 additions & 2 deletions gulp-tasks/build/sass.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const gulp = require('gulp');
const config = require('../config');

Expand Down
2 changes: 0 additions & 2 deletions gulp-tasks/clean.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const del = require('del');
const gulp = require('gulp');
const config = require('./config');
Expand Down
Loading

0 comments on commit 969b313

Please sign in to comment.