Skip to content

Commit 78e69ee

Browse files
Merge pull request princed#43 from princed/dependabot/npm_and_yarn/eslint-config-airbnb-base-15.0.0
Bump eslint-config-airbnb-base from 12.1.0 to 15.0.0
2 parents 28778ab + 56dbe7d commit 78e69ee

File tree

3 files changed

+16
-19
lines changed

3 files changed

+16
-19
lines changed

index.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -156,18 +156,18 @@ const factory = ({
156156

157157
return {
158158
async Once(root) {
159-
const resolver = ResolverFactory.createResolver(Object.assign(
160-
{ fileSystem },
161-
resolveOptions,
162-
));
159+
const resolver = ResolverFactory.createResolver({
160+
fileSystem,
161+
...resolveOptions,
162+
});
163163
const resolve = promisify(resolver.resolve.bind(resolver));
164164
const readFile = promisify(fileSystem.readFile.bind(fileSystem));
165165

166166
let preprocessPlugins = [];
167167
if (preprocessValues) {
168168
const rootPlugins = rootResult.processor.plugins;
169169
const oursPluginIndex = rootPlugins
170-
.findIndex(plugin => plugin.postcssPlugin === PLUGIN);
170+
.findIndex((plugin) => plugin.postcssPlugin === PLUGIN);
171171
preprocessPlugins = rootPlugins.slice(0, oursPluginIndex);
172172
}
173173

@@ -226,10 +226,8 @@ const factory = ({
226226
},
227227
});
228228

229-
230229
const plugin = factory;
231230
plugin.postcss = true;
232231

233232
module.exports = plugin;
234233
exports.default = plugin;
235-

index.test.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ test('should replace a constant and an import with same name within the file and
153153
);
154154
});
155155

156-
157156
test('should replace an import from several files', async (t) => {
158157
await run(
159158
t,
@@ -283,10 +282,10 @@ test('should allow custom-property-style names', async (t) => {
283282
test('should allow all colour types', async (t) => {
284283
await run(
285284
t,
286-
'@value named: red; @value hex3char #0f0; @value hex6char #00ff00; @value rgba rgba(34, 12, 64, 0.3); @value hsla hsla(220, 13.0%, 18.0%, 1);\n' +
287-
'.foo { color: named; background-color: hex3char; border-top-color: hex6char; border-bottom-color: rgba; outline-color: hsla; }',
288-
'@value named: red; @value hex3char #0f0; @value hex6char #00ff00; @value rgba rgba(34, 12, 64, 0.3); @value hsla hsla(220, 13.0%, 18.0%, 1);\n' +
289-
'.foo { color: red; background-color: #0f0; border-top-color: #00ff00; border-bottom-color: rgba(34, 12, 64, 0.3); outline-color: hsla(220, 13.0%, 18.0%, 1); }',
285+
'@value named: red; @value hex3char #0f0; @value hex6char #00ff00; @value rgba rgba(34, 12, 64, 0.3); @value hsla hsla(220, 13.0%, 18.0%, 1);\n'
286+
+ '.foo { color: named; background-color: hex3char; border-top-color: hex6char; border-bottom-color: rgba; outline-color: hsla; }',
287+
'@value named: red; @value hex3char #0f0; @value hex6char #00ff00; @value rgba rgba(34, 12, 64, 0.3); @value hsla hsla(220, 13.0%, 18.0%, 1);\n'
288+
+ '.foo { color: red; background-color: #0f0; border-top-color: #00ff00; border-bottom-color: rgba(34, 12, 64, 0.3); outline-color: hsla(220, 13.0%, 18.0%, 1); }',
290289
);
291290
});
292291

@@ -311,10 +310,10 @@ test('should import multiple from a single file on multiple lines', async (t) =>
311310
test('should allow definitions with commas in them', async (t) => {
312311
await run(
313312
t,
314-
'@value coolShadow: 0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14) ;\n' +
315-
'.foo { box-shadow: coolShadow; }',
316-
'@value coolShadow: 0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14) ;\n' +
317-
'.foo { box-shadow: 0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14); }',
313+
'@value coolShadow: 0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14) ;\n'
314+
+ '.foo { box-shadow: coolShadow; }',
315+
'@value coolShadow: 0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14) ;\n'
316+
+ '.foo { box-shadow: 0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14); }',
318317
);
319318
});
320319

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
"postcss-values-parser": "^6.0.2"
2727
},
2828
"devDependencies": {
29-
"eslint": "^4.15.0",
30-
"eslint-config-airbnb-base": "^12.1.0",
31-
"eslint-plugin-import": "^2.5.0",
29+
"eslint": "^8.36.0",
30+
"eslint-config-airbnb-base": "^15.0.0",
31+
"eslint-plugin-import": "^2.27.5",
3232
"vitest": "^0.29.2"
3333
},
3434
"peerDependencies": {

0 commit comments

Comments
 (0)