Checks if specified files have the same content in all the modules, when they exist. For example, if enabled for file "tsconfig.json", all modules that have this file have to have the same contents.
Enable rule with default files "tsconfig.json, tsconfig.eslint.json, .eslintrc.js, jest.config.js". The reference module will be automatically selected according to the one in which the files are most similar with, minimizing the number of "error" indications due to differences among modules.
{
"rules": {
"module-same-contents": true
}
}
Enable rule with custom files.
The files test/abracadabra.txt and tsconfig.json of all modules must be equal to the files on module "todo-svc" (if multiple modules with the same name exists, the check will fail). It means that if something is different, the files on the reference module will show as "success", but the same files on the other modules will show as "error". If a file is more than 80% similar, it will be "success".
The attributes "engines", "license" and "scripts": {"lint":"[content]"} of package.json must be similar to the package.json file of the reference module
The attributes "useDotenv" and "provider -> runtime" of serverless.yml must be similar to the serverless.yml file of the reference module
Checks if specified files have the same content in all the modules, when they exist. For example, if enabled for file "tsconfig.json", all modules that have this file have to have the same contents.