Skip to content

Commit

Permalink
chore: remove jQuery, add configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-lebleu committed Mar 10, 2024
1 parent a365382 commit 1814598
Show file tree
Hide file tree
Showing 24 changed files with 1,482 additions and 672 deletions.
1 change: 1 addition & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
defaults
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
build
coverage
dist
node_modules
119 changes: 119 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
const OFF = 0;
const WARNING = 1;
const ERROR = 2;

module.exports = {
globals: {
__DEV__: false,
__TEST__: false,
},
settings: {
react: {
pragma: 'React',
version: 'detect',
},
'import/resolver': {
node: {
extensions: ['.js', '.ts', '.tsx'],
},
},
},
sourceType: "module",
rules: {
curly: 2,
'no-param-reassign': OFF,
'valid-jsdoc': OFF,
'no-shadow': OFF,
'prefer-template': OFF,
'jest/no-disabled-tests': OFF,
'react/prop-types': OFF,
'react/no-unescaped-entities': OFF,
'new-cap': OFF,
'eslint-comments/disable-enable-pair': [ERROR, { allowWholeFile: true }],
'import/extensions': OFF,
'@typescript-eslint/camelcase': [
ERROR,
{
allow: ['__autocomplete_', 'aa_core', 'aa_js'],
},
],
'no-unused-expressions': OFF,
complexity: OFF,
'import/order': [
ERROR,
{
alphabetize: {
order: 'asc',
caseInsensitive: true,
},
'newlines-between': 'always',
groups: ['builtin', 'external', 'parent', 'sibling', 'index'],
pathGroups: [
{
pattern: '@/**/*',
group: 'parent',
position: 'before',
},
],
pathGroupsExcludedImportTypes: ['builtin'],
},
],
},
overrides: [
{
files: ['test/**/*'],
rules: {
'import/no-extraneous-dependencies': OFF,
},
},
{
files: ['packages/autocomplete-js/**/*/setProperties.ts'],
rules: {
'eslint-comments/no-unlimited-disable': OFF,
},
},
{
files: [
'packages/autocomplete-core/**/*',
'packages/autocomplete-js/**/*',
],
rules: {
'no-restricted-globals': [
'error',
{
name: 'window',
message: 'Use the `environment` param to access this property.',
},
{
name: 'document',
message: 'Use the `environment` param to access this property.',
},
],
},
},
{
files: ['**/__tests__/**'],
rules: {
'no-restricted-globals': OFF,
},
},
{
files: ['**/rollup.config.js', 'stories/**/*', '**/__tests__/**'],
rules: {
'import/no-extraneous-dependencies': OFF,
},
},
{
files: ['scripts/**/*', '*.config.js'],
rules: {
'import/no-commonjs': OFF,
},
},
{
files: ['examples/**/*'],
rules: {
'spaced-comment': OFF,
},
},
],
};
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18.19.0
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
build
coverage
dist
node_modules
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"proseWrap": "never",
"singleQuote": true,
"trailingComma": "es5"
}
33 changes: 33 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"plugins": [
"stylelint-prettier",
"stylelint-no-unsupported-browser-features"
],
"extends": [
"stylelint-config-standard",
"stylelint-config-sass-guidelines",
"stylelint-order",
"stylelint-a11y/recommended",
"stylelint-prettier/recommended"
],
"rules": {
"order/properties-alphabetical-order": true,
"no-descending-specificity": null,
"selector-class-pattern": [
"^aa(-(?:[A-Z][a-z]+Plugin))?-(?:[A-Z][a-z]+)+(?:--[a-z]+(?:[A-Z][a-z]+)?)?$"
],
"prettier/prettier": true,
"max-nesting-depth": null,
"rule-empty-line-before": [
"always",
{ "ignore": ["after-comment", "first-nested", "inside-block"] }
],
"selector-max-compound-selectors": null,
"plugin/no-unsupported-browser-features": [
null,
{
"severity": "warning"
}
]
}
}
Loading

0 comments on commit 1814598

Please sign in to comment.