123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258 |
- /* eslint sort-keys: ["error", "asc", {"caseSensitive": false}] */
- 'use strict';
- module.exports.defaultReplacements = {
- acc: {
- accumulator: true,
- },
- arg: {
- argument: true,
- },
- args: {
- arguments: true,
- },
- arr: {
- array: true,
- },
- attr: {
- attribute: true,
- },
- attrs: {
- attributes: true,
- },
- btn: {
- button: true,
- },
- cb: {
- callback: true,
- },
- conf: {
- config: true,
- },
- ctx: {
- context: true,
- },
- cur: {
- current: true,
- },
- curr: {
- current: true,
- },
- db: {
- database: true,
- },
- def: {
- defer: true,
- deferred: true,
- define: true,
- definition: true,
- },
- dest: {
- destination: true,
- },
- dev: {
- development: true,
- },
- dir: {
- direction: true,
- directory: true,
- },
- dirs: {
- directories: true,
- },
- dist: {
- distribution: true,
- },
- doc: {
- document: true,
- },
- docs: {
- documentation: true,
- documents: true,
- },
- dst: {
- daylightSavingTime: true,
- destination: true,
- distribution: true,
- },
- e: {
- error: true,
- event: true,
- },
- el: {
- element: true,
- },
- elem: {
- element: true,
- },
- env: {
- environment: true,
- },
- envs: {
- environments: true,
- },
- err: {
- error: true,
- },
- ev: {
- event: true,
- },
- evt: {
- event: true,
- },
- ext: {
- extension: true,
- },
- exts: {
- extensions: true,
- },
- fn: {
- function: true,
- },
- func: {
- function: true,
- },
- i: {
- index: true,
- },
- idx: {
- index: true,
- },
- j: {
- index: true,
- },
- len: {
- length: true,
- },
- lib: {
- library: true,
- },
- mod: {
- module: true,
- },
- msg: {
- message: true,
- },
- num: {
- number: true,
- },
- obj: {
- object: true,
- },
- opts: {
- options: true,
- },
- param: {
- parameter: true,
- },
- params: {
- parameters: true,
- },
- pkg: {
- package: true,
- },
- prev: {
- previous: true,
- },
- prod: {
- production: true,
- },
- prop: {
- property: true,
- },
- props: {
- properties: true,
- },
- ref: {
- reference: true,
- },
- refs: {
- references: true,
- },
- rel: {
- related: true,
- relationship: true,
- relative: true,
- },
- req: {
- request: true,
- },
- res: {
- response: true,
- result: true,
- },
- ret: {
- returnValue: true,
- },
- retval: {
- returnValue: true,
- },
- sep: {
- separator: true,
- },
- src: {
- source: true,
- },
- stdDev: {
- standardDeviation: true,
- },
- str: {
- string: true,
- },
- tbl: {
- table: true,
- },
- temp: {
- temporary: true,
- },
- tit: {
- title: true,
- },
- tmp: {
- temporary: true,
- },
- val: {
- value: true,
- },
- var: {
- variable: true,
- },
- vars: {
- variables: true,
- },
- ver: {
- version: true,
- },
- };
- module.exports.defaultAllowList = {
- // React.Component Class property
- // https://reactjs.org/docs/react-component.html#defaultprops
- defaultProps: true,
- // `package.json` field
- // https://docs.npmjs.com/specifying-dependencies-and-devdependencies-in-a-package-json-file
- devDependencies: true,
- // Ember class name
- // https://api.emberjs.com/ember/3.10/classes/Ember.EmberENV/properties
- EmberENV: true,
- // React.Component static method
- // https://reactjs.org/docs/react-component.html#static-getderivedstatefromprops
- getDerivedStateFromProps: true,
- // Next.js function
- // https://nextjs.org/learn/basics/fetching-data-for-pages
- getInitialProps: true,
- getServerSideProps: true,
- getStaticProps: true,
- // React PropTypes
- // https://reactjs.org/docs/typechecking-with-proptypes.html
- propTypes: true,
- // Jest configuration
- // https://jestjs.io/docs/en/configuration#setupfilesafterenv-array
- setupFilesAfterEnv: true,
- };
- module.exports.defaultIgnore = [
- // Internationalization and localization
- // https://github.com/sindresorhus/eslint-plugin-unicorn/issues/1188
- 'i18n',
- 'l10n',
- ];
|