Skip to content

Commit

Permalink
feat: integrate [email protected] (#3519)
Browse files Browse the repository at this point in the history
ApiDOM has dropped stamps from it's public API
and is now using JavaScript classes only.

Refs #3518
  • Loading branch information
char0n authored May 16, 2024
1 parent deea99c commit 56df8f6
Show file tree
Hide file tree
Showing 33 changed files with 1,621 additions and 1,556 deletions.
55 changes: 0 additions & 55 deletions .eslintrc

This file was deleted.

62 changes: 62 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
const path = require('node:path');

module.exports = {
root: true,
env: {
'shared-node-browser': true,
es6: true,
es2017: true,
},
globals: {
File: true,
Blob: true,
globalThis: true,
},
parser: '@babel/eslint-parser',
parserOptions: {
babelOptions: { configFile: path.join(__dirname, 'babel.config.js') },
sourceType: 'module',
ecmaVersion: 2020,
ecmaFeatures: {
impliedStrict: true,
},
},
extends: ['eslint-config-airbnb-base', 'prettier'],
plugins: ['eslint-plugin-prettier', 'prettier'],
rules: {
'import/order': [
'error',
{
groups: [
['builtin', 'external', 'internal'],
['parent', 'sibling', 'index'],
],
'newlines-between': 'always',
},
],
'import/extensions': [
'error',
'always',
{
ignorePackages: true,
},
],
'import/no-unresolved': [
2,
{
ignore: [
'^@swagger-api/apidom-reference/configuration/empty$',
'^@swagger-api/apidom-reference/dereference/strategies/openapi-3-1$',
'^@swagger-api/apidom-reference/dereference/strategies/openapi-3-1/selectors/\\$anchor$',
'^@swagger-api/apidom-reference/dereference/strategies/openapi-3-1/selectors/uri$',
'^@swagger-api/apidom-reference/resolve/resolvers/file$',
'^@swagger-api/apidom-reference/resolve/strategies/openapi-3-1$',
'^@swagger-api/apidom-reference/parse/parsers/binary$',
],
},
],
'prettier/prettier': 'error',
'no-param-reassign': 0, // needs to be eliminated in future
'no-use-before-define': [2, 'nofunc'], // needs to be eliminated in future
},
};
3 changes: 2 additions & 1 deletion config/jest/jest.unit.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ module.exports = {
testPathIgnorePatterns: [
'<rootDir>/node_modules/',
'<rootDir>/test/data/',
'<rootDir>/test/.eslintrc.js',
'<rootDir>/test/jest.setup.js',
'<rootDir>/test/resolver/specmap/data/',
'<rootDir>/test/build-artifacts/',
'/__fixtures__/',
'/__utils__/',
],
silent: true,
silent: false,
};
2 changes: 1 addition & 1 deletion config/jest/jest.unit.coverage.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
'./src/': {
branches: 83,
functions: 91,
lines: 89,
lines: 88,
statements: 88,
},
},
Expand Down
Loading

0 comments on commit 56df8f6

Please sign in to comment.